]> git.pld-linux.org Git - packages/rc-scripts.git/blob - rc-scripts-reboot.patch
- typo
[packages/rc-scripts.git] / rc-scripts-reboot.patch
1 diff -ru rc-scripts-0.3.1/rc.d/rc.sysinit rc-scripts-0.3.1-AlchemyX/rc.d/rc.sysinit
2 --- rc-scripts-0.3.1/rc.d/rc.sysinit    Sun Jan 27 03:13:50 2002
3 +++ rc-scripts-0.3.1-AlchemyX/rc.d/rc.sysinit   Sun Dec  1 14:47:00 2002
4 @@ -174,8 +174,8 @@
5  
6         rc=$?
7  
8 -       # A return of 2 or higher means there were serious problems.
9 -       if [ $rc -gt 1 ]; then
10 +       # A return of 4 or higher means there were serious problems.
11 +       if [ $rc -gt 3 ]; then
12                 # don't use '\n' in nls macro !
13                 echo
14                 echo
15 @@ -193,6 +193,18 @@
16  
17                 run_cmd "Unmounting file systems" umount -a
18                 mount -n -o remount,ro /
19 +               run_cmd "Automatic reboot in progress" reboot
20 +       # A return of 2 or 3 means that filesystem was repaired but we need
21 +       # to reboot.
22 +       elif [ "$rc" = "2" -o "$rc" = "3" ]; then
23 +               echo
24 +               nls "*** Filesystem was repaired but system needs to be"
25 +               nls "*** rebooted before mounting it."
26 +               nls "*** REBOOTING ***"
27 +               echo
28 +
29 +               run_cmd "Unmounting file systems" umount -a
30 +               mount -n -o remount,ro /
31                 run_cmd "Automatic reboot in progress" reboot
32         elif [ "$rc" = "1" ]; then
33                 _RUN_QUOTACHECK=1
This page took 0.026548 seconds and 3 git commands to generate.