]> git.pld-linux.org Git - packages/rc-scripts.git/commitdiff
- system will be rebooted if it is instructed by fsc to do so
authoralchemyx <alchemyx@pld-linux.org>
Sun, 1 Dec 2002 21:34:39 +0000 (21:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rc-scripts-reboot.patch -> 1.1

rc-scripts-reboot.patch [new file with mode: 0644]

diff --git a/rc-scripts-reboot.patch b/rc-scripts-reboot.patch
new file mode 100644 (file)
index 0000000..f54e153
--- /dev/null
@@ -0,0 +1,33 @@
+diff -ru rc-scripts-0.3.1/rc.d/rc.sysinit rc-scripts-0.3.1-AlchemyX/rc.d/rc.sysinit
+--- rc-scripts-0.3.1/rc.d/rc.sysinit   Sun Jan 27 03:13:50 2002
++++ rc-scripts-0.3.1-AlchemyX/rc.d/rc.sysinit  Sun Dec  1 14:47:00 2002
+@@ -174,8 +174,8 @@
+       rc=$?
+-      # A return of 2 or higher means there were serious problems.
+-      if [ $rc -gt 1 ]; then
++      # A return of 4 or higher means there were serious problems.
++      if [ $rc -gt 4 ]; then
+               # don't use '\n' in nls macro !
+               echo
+               echo
+@@ -193,6 +193,18 @@
+               run_cmd "Unmounting file systems" umount -a
+               mount -n -o remount,ro /
++              run_cmd "Automatic reboot in progress" reboot
++      # A return of 2 or 3 means that filesystem was repaired but we need
++      # to reboot.
++      elif [ "$rc" = "2" -o "$rc" = "3" ]; then
++              echo
++              nls "*** Filesystem was repaired but system needs to be"
++              nls "*** rebooted before mounting it."
++              nls "*** REBOOTING ***"
++              echo
++
++              run_cmd "Unmounting file systems" umount -a
++              mount -n -o remount,ro /
+               run_cmd "Automatic reboot in progress" reboot
+       elif [ "$rc" = "1" ]; then
+               _RUN_QUOTACHECK=1
This page took 0.070092 seconds and 4 git commands to generate.