Subversion Repositories livecd

Rev

Rev 1 | Go to most recent revision | 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 234... Line 234...
234
fi
234
fi
235
 
235
 
236
# ------------------ LiveCD -------------------------
236
# ------------------ LiveCD -------------------------
237
 
237
 
238
# First, try kexec. If that fails, fall back to rebooting the old way.
238
# First, try kexec. If that fails, fall back to rebooting the old way.
239
[ -n "$kexec_command" ] && $kexec_command -e >& /dev/null
239
[ -n "$kexec_command" ] && $kexec_command -e -x >& /dev/null
240
 
240
 
241
HALTARGS="-d"
241
HALTARGS="-d"
242
[ -f /poweroff -o ! -f /halt ] && HALTARGS="$HALTARGS -p"
242
[ -f /poweroff -o ! -f /halt ] && HALTARGS="$HALTARGS -p"
243
 
243
 
244
exec $command $HALTARGS
244
exec $command $HALTARGS