diff options
Diffstat (limited to 'meta/packages/initscripts/initscripts-1.0/checkroot.sh')
| -rwxr-xr-x | meta/packages/initscripts/initscripts-1.0/checkroot.sh | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/meta/packages/initscripts/initscripts-1.0/checkroot.sh b/meta/packages/initscripts/initscripts-1.0/checkroot.sh index 8255038c32..c96c7b88cb 100755 --- a/meta/packages/initscripts/initscripts-1.0/checkroot.sh +++ b/meta/packages/initscripts/initscripts-1.0/checkroot.sh | |||
| @@ -152,14 +152,7 @@ fi | |||
| 152 | mount -n -o remount,$rootmode / | 152 | mount -n -o remount,$rootmode / |
| 153 | if test "$rootmode" = rw | 153 | if test "$rootmode" = rw |
| 154 | then | 154 | then |
| 155 | if test ! -L /etc/mtab | 155 | ln -sf /proc/mounts /dev/mtab |
| 156 | then | ||
| 157 | rm -f /etc/mtab~ /etc/nologin | ||
| 158 | : > /etc/mtab | ||
| 159 | fi | ||
| 160 | mount -f -o remount / | ||
| 161 | mount -f /proc | ||
| 162 | test "$devfs" && grep -q '^devfs /dev' /proc/mounts && mount -f "$devfs" | ||
| 163 | fi | 156 | fi |
| 164 | 157 | ||
| 165 | : exit 0 | 158 | : exit 0 |
