blob: 2ea4829a650081313c7906c3059dd1f6e00a654d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- etc/init.d/halt.loopfs 2005-12-27 22:13:48.000000000 +0100
+++ etc/init.d/halt 2005-12-27 22:14:28.000000000 +0100
@@ -23,7 +23,7 @@
}
halt_get_remaining() {
- awk '$2 ~ /^\/$|^\/proc|^\/sys|^\/dev/{next}
+ awk '$2 ~ /^\/$|^\/proc|^\/sys|^\/dev|^\/live/{next}
$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
/(^#|loopfs|autofs|devfs|^none|^\/dev\/ram|^\/dev\/root)/ {next}
{print $2}' /proc/mounts
@@ -139,7 +139,7 @@
# Unmount loopback stuff first
remaining=`awk '!/^#/ && $1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts`
devremaining=`awk '!/^#/ && $1 ~ /^\/dev\/loop/ && $2 != "/" {print $1}' /proc/mounts`
-[ -n "$remaining" ] && {
+/bin/false && [ -n "$remaining" ] && {
sig=
retry=3
while [ -n "$remaining" -a "$retry" -gt 0 ]
|