From: <bl...@us...> - 2003-11-03 02:24:25
|
Update of /cvsroot/devil-linux/build/scripts/scripts In directory sc8-pr-cvs1:/tmp/cvs-serv24633/scripts/scripts Modified Files: pre_init Log Message: Changed default to upgrade config. Index: pre_init =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/scripts/pre_init,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- pre_init 21 Oct 2003 18:19:29 -0000 1.9 +++ pre_init 3 Nov 2003 02:24:22 -0000 1.10 @@ -74,16 +74,16 @@ #export PS2='> ' echo - read -n 1 -t 300 -p 'Press "y" to upgrade now, or any key to skip ... (timeout in 5 minutes)' bs + read -n 1 -t 300 -p 'Press any key to upgrade, or "n" to skip. (timeout in 5 minutes)' bs echo - if [ "$bs" = "y" ]; then + if [ "$bs" != "n" ]; then echo echo -n "Comparing configurations, please wait " /sbin/upgrade-config echo - read -n 1 -t 300 -p 'Press "y" to switch to your new config ... (timeout in 5 minutes)' bs + read -n 1 -t 300 -p 'Press any key to switch to your new config, or "n" to skip. (timeout in 5 min)' bs echo - if [ "$bs" = "y" ]; then + if [ "$bs" != "n" ]; then cp -f /config/etc_files/* /shm/newconfig/etc/ cp -f /shm/etc/mtab /shm/newconfig/etc/ mv /shm/etc /shm/etc-old |