/[baselayout]/trunk/sbin/functions.sh
Gentoo

Diff of /trunk/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=''
683 local addon="$1" 684 local addon="$1"
684 (import_addon "${addon}-start.sh") 685 (import_addon "${addon}-start.sh")
685 return 0 686 return 0
686} 687}
687 688
688# void start_volumes()
689#
690# Starts all volumes in RC_VOLUME_ORDER.
691#
692start_volumes() {
693 local x=
694
695 for x in ${RC_VOLUME_ORDER} ; do
696 start_addon "${x}"
697 done
698
699 return 0
700}
701
702# void stop_addon(addon) 689# void stop_addon(addon)
703# 690#
704# Stops addon. 691# Stops addon.
705# 692#
706stop_addon() { 693stop_addon() {
707 local addon=$1 694 local addon=$1
708 (import_addon "${addon}-stop.sh") 695 (import_addon "${addon}-stop.sh")
709 return 0
710}
711
712# void stop_volumes()
713#
714# Stops all volumes in RC_VOLUME_ORDER (reverse order).
715#
716stop_volumes() {
717 local x=
718
719 for x in $(reverse_list ${RC_VOLUME_ORDER}) ; do
720 stop_addon "${x}"
721 done
722
723 return 0 696 return 0
724} 697}
725 698
726# bool is_older_than(reference, files/dirs to check) 699# bool is_older_than(reference, files/dirs to check)
727# 700#

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

  ViewVC Help
Powered by ViewVC 1.1.20