Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 70349
Collapse All | Expand All

(-)/tmp/halt.sh (-2 / +10 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2004 Gentoo Foundation
1
# Copyright 1999-2004 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-src/rc-scripts/init.d/halt.sh,v 1.62 2004/10/28 19:18:38 azarah Exp $
3
# $Header: /var/cvsroot/gentoo-src/rc-scripts/init.d/halt.sh,v 1.60 2004/10/26 02:01:11 vapier Exp $
4
4
5
# Check to see if this is a livecd, if it is read the commandline
5
# Check to see if this is a livecd, if it is read the commandline
6
# this mainly makes sure $CDBOOT is defined if it's a livecd
6
# this mainly makes sure $CDBOOT is defined if it's a livecd
Lines 211-217 Link Here
211
	do
211
	do
212
		# ${x} needs to be quoted to handle octal sequences such as
212
		# ${x} needs to be quoted to handle octal sequences such as
213
		# \040 (see bug 51351)
213
		# \040 (see bug 51351)
214
		mount -n -o remount,ro "${x}" &>/dev/null
214
		if [ "$force_remount" = "1" ]; then
215
			ewarn "    Forcing remount ${x}"
216
			mount -f -n -o remount,ro "${x}" &>/dev/null
217
		else
218
			mount -n -o remount,ro "${x}" &>/dev/null
219
		fi
215
		retval=$((${retval} + $?))
220
		retval=$((${retval} + $?))
216
	done
221
	done
217
222
Lines 233-238 Link Here
233
		sync; sync
238
		sync; sync
234
		[ -f /etc/killpower ] && ups_kill_power
239
		[ -f /etc/killpower ] && ups_kill_power
235
		/sbin/sulogin -t 10 /dev/console
240
		/sbin/sulogin -t 10 /dev/console
241
		force_remount="1" 
242
		mount_readonly
243
		sleep 5
236
	else
244
	else
237
		eend 0
245
		eend 0
238
	fi
246
	fi

Return to bug 70349