/[baselayout]/branches/baselayout-1_12/sbin/functions.sh
Gentoo

Diff of /branches/baselayout-1_12/sbin/functions.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2090 Revision 2091
40RC_USE_FSTAB="${RC_USE_FSTAB:-no}" 40RC_USE_FSTAB="${RC_USE_FSTAB:-no}"
41RC_USE_CONFIG_PROFILE="${RC_USE_CONFIG_PROFILE:-yes}" 41RC_USE_CONFIG_PROFILE="${RC_USE_CONFIG_PROFILE:-yes}"
42RC_FORCE_AUTO="${RC_FORCE_AUTO:-no}" 42RC_FORCE_AUTO="${RC_FORCE_AUTO:-no}"
43RC_DEVICES="${RC_DEVICES:-auto}" 43RC_DEVICES="${RC_DEVICES:-auto}"
44RC_DOWN_INTERFACE="${RC_DOWN_INTERFACE:-yes}" 44RC_DOWN_INTERFACE="${RC_DOWN_INTERFACE:-yes}"
45RC_VOLUME_ORDER="${RC_VOLUME_ORDER:-raid evms lvm dm}"
45 46
46# 47#
47# Default values for e-message indentation and dots 48# Default values for e-message indentation and dots
48# 49#
49RC_INDENTATION='' 50RC_INDENTATION=''
679 local addon="$1" 680 local addon="$1"
680 (import_addon "${addon}-start.sh") 681 (import_addon "${addon}-start.sh")
681 return 0 682 return 0
682} 683}
683 684
684# void start_volumes()
685#
686# Starts all volumes in RC_VOLUME_ORDER.
687#
688start_volumes() {
689 local x=
690
691 for x in ${RC_VOLUME_ORDER} ; do
692 start_addon "${x}"
693 done
694
695 return 0
696}
697
698# void stop_addon(addon) 685# void stop_addon(addon)
699# 686#
700# Stops addon. 687# Stops addon.
701# 688#
702stop_addon() { 689stop_addon() {
703 local addon=$1 690 local addon=$1
704 (import_addon "${addon}-stop.sh") 691 (import_addon "${addon}-stop.sh")
705 return 0
706}
707
708# void stop_volumes()
709#
710# Stops all volumes in RC_VOLUME_ORDER (reverse order).
711#
712stop_volumes() {
713 local x=
714
715 for x in $(reverse_list ${RC_VOLUME_ORDER}) ; do
716 stop_addon "${x}"
717 done
718
719 return 0 692 return 0
720} 693}
721 694
722# bool is_older_than(reference, files/dirs to check) 695# bool is_older_than(reference, files/dirs to check)
723# 696#

Legend:
Removed from v.2090  
changed lines
  Added in v.2091

  ViewVC Help
Powered by ViewVC 1.1.20