Changeset 191 for freebsd-mgnt/system-update.sh
- Timestamp:
- Oct 2, 2010, 3:23:43 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
freebsd-mgnt/system-update.sh
r190 r191 8 8 9 9 ask_question() { 10 # Will return 1 if yes, return 0 if no 10 11 QUESTION=$1 11 12 DEFAULT=$2 … … 15 16 16 17 } 17 18 18 19 19 if [ `id -u` -ne 0 ]; then … … 70 70 if [ -n "$RC_FILES" ]; then 71 71 echo $RC_FILES 72 ask_question "Do you like to stop your deamons" "yes" || exit 73 for RC_FILE in $RC_FILES; do 74 $RC_FILE stop 75 done 72 ask_question "Do you like to stop your deamons" "yes" && { 73 for RC_FILE in $RC_FILES; do 74 $RC_FILE stop 75 done 76 } 76 77 fi 77 78 fi … … 82 83 if [ -n "$RC_FILES" ]; then 83 84 echo $RC_FILES 84 ask_question "Do you like to restart your deamons" "yes" || exit 85 for RC_FILE in $RC_FILES; do 86 $RC_FILE restart 87 done 85 ask_question "Do you like to restart your deamons" "yes" && { 86 for RC_FILE in $RC_FILES; do 87 $RC_FILE restart 88 done 89 } 88 90 fi
Note:
See TracChangeset
for help on using the changeset viewer.