Subversion Repositories livecd

Rev

Rev 1 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1 Rev 112
Line 162... Line 162...
162
    $"Unmounting pipe file systems (retry): " \
162
    $"Unmounting pipe file systems (retry): " \
163
    -f
163
    -f
164
 
164
 
165
LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
165
LANG=C __umount_loop '$2 ~ /^\/$|^\/proc|^\/dev/{next}
166
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
166
	$3 == "tmpfs" || $3 == "proc" {print $2 ; next}
167
	/(loopfs|autofs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
167
	/(loopfs|autofs|nfs|cifs|smbfs|ncpfs|sysfs|^none|^\/dev\/ram|^\/dev\/root$)/ {next}
168
	{print $2}' /proc/mounts \
168
	{print $2}' /proc/mounts \
169
	$"Unmounting file systems: " \
169
	$"Unmounting file systems: " \
170
	$"Unmounting file systems (retry): " \
170
	$"Unmounting file systems (retry): " \
171
	-f
171
	-f
172
 
172
 
Line 212... Line 212...
212
		$MODEL $OPTIONS_HALT -k $DEVICE
212
		$MODEL $OPTIONS_HALT -k $DEVICE
213
	fi
213
	fi
214
fi
214
fi
215
 
215
 
216
# First, try kexec. If that fails, fall back to rebooting the old way.
216
# First, try kexec. If that fails, fall back to rebooting the old way.
217
[ -n "$kexec_command" ] && $kexec_command -e >& /dev/null
217
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null
218
 
218
 
219
HALTARGS="-d"
219
HALTARGS="-d"
220
[ -f /poweroff -o ! -f /halt ] && HALTARGS="$HALTARGS -p"
220
[ -f /poweroff -o ! -f /halt ] && HALTARGS="$HALTARGS -p"
221
 
221
 
222
exec $command $HALTARGS
222
exec $command $HALTARGS