Compare commits
	
		
			11 Commits
		
	
	
		
			openrc-0.6
			...
			openrc-0.6
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					9285cb3392 | ||
| 
						 | 
					6d9137d6c4 | ||
| 
						 | 
					2fa6bb0d48 | ||
| 
						 | 
					39776d6fb7 | ||
| 
						 | 
					68c021c424 | ||
| 
						 | 
					09bed967bf | ||
| 
						 | 
					060b19e3e3 | ||
| 
						 | 
					d8a76d1bf6 | ||
| 
						 | 
					7653ef89b8 | ||
| 
						 | 
					be6c0716ee | ||
| 
						 | 
					4ea75dd1d6 | 
@@ -1,3 +1,3 @@
 | 
			
		||||
NAME=		openrc
 | 
			
		||||
VERSION=	0.6.3
 | 
			
		||||
VERSION=	0.6.4
 | 
			
		||||
PKG=		${NAME}-${VERSION}
 | 
			
		||||
 
 | 
			
		||||
@@ -11,7 +11,8 @@
 | 
			
		||||
 | 
			
		||||
# Set rc_interactive to "YES" and you'll be able to press the I key during
 | 
			
		||||
# boot so you can choose to start specific services. Set to "NO" to disable
 | 
			
		||||
# this feature.
 | 
			
		||||
# this feature. This feature is automatically disabled if rc_parallel is
 | 
			
		||||
# set to YES.
 | 
			
		||||
#rc_interactive="YES"
 | 
			
		||||
 | 
			
		||||
# If we need to drop to a shell, you can specify it here.
 | 
			
		||||
@@ -75,8 +76,14 @@
 | 
			
		||||
# Set unicode to YES to turn on unicode support for keyboards and screens.
 | 
			
		||||
#unicode="NO"
 | 
			
		||||
 | 
			
		||||
# Network fstypes. Below is the default.
 | 
			
		||||
net_fs_list="afs cifs coda davfs fuse fuse.sshfs gfs glusterfs lustre ncpfs nfs nfs4 ocfs2 shfs smbfs"
 | 
			
		||||
# Below is the default list of network fstypes.
 | 
			
		||||
#
 | 
			
		||||
# afs cifs coda davfs fuse fuse.sshfs gfs glusterfs lustre ncpfs
 | 
			
		||||
# nfs nfs4 ocfs2 shfs smbfs
 | 
			
		||||
#
 | 
			
		||||
# If you would like to add to this list, you can do so by adding your
 | 
			
		||||
# own fstypes to the following variable.
 | 
			
		||||
#extra_net_fs_list=""
 | 
			
		||||
 | 
			
		||||
##############################################################################
 | 
			
		||||
# SERVICE CONFIGURATION VARIABLES
 | 
			
		||||
 
 | 
			
		||||
@@ -4,7 +4,6 @@
 | 
			
		||||
 | 
			
		||||
depend()
 | 
			
		||||
{
 | 
			
		||||
	use hostname
 | 
			
		||||
	need localmount
 | 
			
		||||
	before logger
 | 
			
		||||
	after clock sysctl
 | 
			
		||||
@@ -36,6 +35,12 @@ cleanup_tmp_dir()
 | 
			
		||||
		# Faster than find
 | 
			
		||||
		rm -rf -- [^ajlq\.]*
 | 
			
		||||
 | 
			
		||||
		# pam_mktemp creates a .private directory within which
 | 
			
		||||
		# each user gets a private directory with immutable
 | 
			
		||||
		# bit set; remove the immutable bit before trying to
 | 
			
		||||
		# remove it.
 | 
			
		||||
		[ -d /tmp/.private ] && chattr -R -a /tmp/.private
 | 
			
		||||
 | 
			
		||||
		find $startopts ! -name . \
 | 
			
		||||
			! -path "./lost+found" \
 | 
			
		||||
			! -path "./lost+found/*" \
 | 
			
		||||
@@ -49,8 +54,6 @@ cleanup_tmp_dir()
 | 
			
		||||
			! -path "./aquota.group/*" \
 | 
			
		||||
			! -path "./journal" \
 | 
			
		||||
			! -path "./journal/*" \
 | 
			
		||||
			! -path "./.private" \
 | 
			
		||||
			! -path "./.private/*" \
 | 
			
		||||
			-exec rm -rf {} \;
 | 
			
		||||
		eend 0
 | 
			
		||||
	else
 | 
			
		||||
 
 | 
			
		||||
@@ -18,11 +18,6 @@ start()
 | 
			
		||||
		local_start
 | 
			
		||||
	fi
 | 
			
		||||
 | 
			
		||||
	# Support old configs
 | 
			
		||||
	if [ -e @SYSCONFDIR@/conf.d/local.start ]; then
 | 
			
		||||
		. @SYSCONFDIR@/conf.d/local.start
 | 
			
		||||
	fi
 | 
			
		||||
 | 
			
		||||
	eend $? "Failed to start local"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -34,10 +29,5 @@ stop()
 | 
			
		||||
		local_stop
 | 
			
		||||
	fi
 | 
			
		||||
 | 
			
		||||
	# Support old configs
 | 
			
		||||
	if [ -e @SYSCONFDIR@/conf.d/local.stop ]; then
 | 
			
		||||
		. @SYSCONFDIR@/conf.d/local.stop
 | 
			
		||||
	fi
 | 
			
		||||
 | 
			
		||||
	eend $? "Failed to stop local"
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -4,7 +4,6 @@
 | 
			
		||||
 | 
			
		||||
depend()
 | 
			
		||||
{
 | 
			
		||||
	use hostname
 | 
			
		||||
	before bootmisc logger
 | 
			
		||||
	keyword -openvz -prefix -vserver
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -46,12 +46,27 @@ bonding_pre_start()
 | 
			
		||||
		return 1
 | 
			
		||||
	fi
 | 
			
		||||
 | 
			
		||||
	# Configure the bond.
 | 
			
		||||
	# Nice and dynamic :)
 | 
			
		||||
	# Interface must be down in order to configure
 | 
			
		||||
	_down
 | 
			
		||||
 | 
			
		||||
	# Configure the bond mode, then we can reloop to ensure we configure
 | 
			
		||||
	# All other options
 | 
			
		||||
	for x in /sys/class/net/"${IFACE}"/bonding/mode; do
 | 
			
		||||
		[ -f "${x}" ] || continue
 | 
			
		||||
		n=${x##*/}
 | 
			
		||||
		eval s=\$${n}_${IFVAR}
 | 
			
		||||
		if [ -n "${s}" ]; then
 | 
			
		||||
			einfo "Setting ${n}: ${s}"
 | 
			
		||||
			echo "${s}" >"${x}" || \
 | 
			
		||||
			eerror "Failed to configure $n (${n}_${IFVAR})"
 | 
			
		||||
		fi
 | 
			
		||||
	done
 | 
			
		||||
	# Nice and dynamic for remaining options:)
 | 
			
		||||
	for x in /sys/class/net/"${IFACE}"/bonding/*; do
 | 
			
		||||
		[ -f "${x}" ] || continue
 | 
			
		||||
		n=${x##*/}
 | 
			
		||||
		eval s=\$${n}_${IFVAR}
 | 
			
		||||
		[ "${n}" != "mode" ] || continue
 | 
			
		||||
		if [ -n "${s}" ]; then
 | 
			
		||||
			einfo "Setting ${n}: ${s}"
 | 
			
		||||
			echo "${s}" >"${x}" || \
 | 
			
		||||
 
 | 
			
		||||
@@ -27,8 +27,8 @@ ifplugd_pre_start()
 | 
			
		||||
		return 0
 | 
			
		||||
	fi
 | 
			
		||||
 | 
			
		||||
	# We don't work on bonded, bridges, tun/tap, vlan or wireless
 | 
			
		||||
	for f in bond bridge tuntap vlan wireless; do
 | 
			
		||||
	# We don't work on bonded, bridges, tun/tap or vlan
 | 
			
		||||
	for f in bond bridge tuntap vlan; do
 | 
			
		||||
		if type "_is_${f}" >/dev/null 2>&1; then
 | 
			
		||||
			if _is_${f}; then
 | 
			
		||||
				veinfo "ifplugd does not work with ${f}"
 | 
			
		||||
 
 | 
			
		||||
@@ -17,7 +17,7 @@ fi
 | 
			
		||||
if [ -e /etc/runlevels/"$RC_DEFAULTLEVEL"/consolefont \
 | 
			
		||||
	 -o -e /etc/runlevels/"$RC_BOOTLEVEL"/consolefont ]; then
 | 
			
		||||
	printf "\033%s" "$termencoding" >"$CONSOLE" 2>/dev/null
 | 
			
		||||
	if [ -r "$RC_LIBEXECDIR"/console/font -a -x /bin/setfont ]; then
 | 
			
		||||
	if [ -r "$RC_LIBEXECDIR"/console/font -a -x /usr/bin/setfont ]; then
 | 
			
		||||
		font="$(cat "$RC_LIBEXECDIR"/console/font)"
 | 
			
		||||
		[ -c "$CONSOLE" ] && cons="-C $CONSOLE"
 | 
			
		||||
		setfont $cons "$RC_LIBEXECDIR"/console/"$font" 2>/dev/null
 | 
			
		||||
@@ -29,7 +29,7 @@ if [ -e /etc/runlevels/"$RC_DEFAULTLEVEL"/keymaps \
 | 
			
		||||
	 -o -e /etc/runlevels/"$RC_BOOTLEVEL"/keymaps ]; then
 | 
			
		||||
	kbd_mode $kmode -C "$CONSOLE" 2>/dev/null
 | 
			
		||||
	if [ -r "$RC_LIBEXECDIR"/console/keymap ]; then
 | 
			
		||||
		loadkeys "$RC_LIBEXECDIR"/console/keymap 2>/dev/null
 | 
			
		||||
		loadkeys -q "$RC_LIBEXECDIR"/console/keymap 2>/dev/null
 | 
			
		||||
	fi
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -38,7 +38,8 @@ stop_addon()
 | 
			
		||||
	( import_addon "$1-stop" )
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
net_fs_list="afs cifs coda davfs fuse gfs ncpfs nfs nfs4 ocfs2 shfs smbfs"
 | 
			
		||||
net_fs_list="afs cifs coda davfs fuse fuse.sshfs gfs glusterfs lustre
 | 
			
		||||
ncpfs nfs nfs4 ocfs2 shfs smbfs $extra_net_fs_list"
 | 
			
		||||
is_net_fs()
 | 
			
		||||
{
 | 
			
		||||
	[ -z "$1" ] && return 1
 | 
			
		||||
 
 | 
			
		||||
@@ -26,6 +26,8 @@ do_unmount()
 | 
			
		||||
		# Unmounting a shared mount can unmount other mounts, so
 | 
			
		||||
		# we need to check the mount is still valid
 | 
			
		||||
		mountinfo --quiet "$mnt" || continue
 | 
			
		||||
		# Ensure we interpret all characters properly.
 | 
			
		||||
		mnt=$(printf "$mnt")
 | 
			
		||||
 | 
			
		||||
		case "$cmd" in
 | 
			
		||||
			umount)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user