blob: 8a9ecf4ac2e8cce652affdb133acd4910a498f2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
Index: init.d/halt.sh
===================================================================
--- init.d/halt.sh (revision 2015)
+++ init.d/halt.sh (working copy)
@@ -97,7 +97,7 @@
($1 != "none") && \
($1 !~ /^(rootfs|\/dev\/root)$/) && \
($2 != "/")) \
- print $2 }' /proc/mounts | sort -k2 -ur)
+ print $2 }' /proc/mounts | sort -ur)
for x in ${unmounts}; do
# Do not umount these if we are booting off a livecd
if [[ -n ${CDBOOT} ]] && \
@@ -152,7 +152,7 @@
sync; sync
sleep 1
- for x in $(awk '$1 != "none" { print $2 }' /proc/mounts | sort -k2 -ur) ; do
+ for x in $(awk '$1 != "none" { print $2 }' /proc/mounts | sort -ur) ; do
x=${x//\\040/ }
if [[ ${cmd} == "u" ]]; then
umount -n -r "${x}"
|