diff options
author | Roy Marples <uberlord@gentoo.org> | 2007-02-23 13:56:05 +0000 |
---|---|---|
committer | Roy Marples <uberlord@gentoo.org> | 2007-02-23 13:56:05 +0000 |
commit | 03c40d9170c6b9241c57545026e67c6e168f3f8a (patch) | |
tree | 7b0ff3110a7575ee0f271807268f90d7b94f9d79 /sys-freebsd/freebsd-sbin/files | |
parent | Don't force bashisms. (diff) | |
download | gentoo-2-03c40d9170c6b9241c57545026e67c6e168f3f8a.tar.gz gentoo-2-03c40d9170c6b9241c57545026e67c6e168f3f8a.tar.bz2 gentoo-2-03c40d9170c6b9241c57545026e67c6e168f3f8a.zip |
init scripts no longer use bash.
(Portage version: 2.1.2-r10)
Diffstat (limited to 'sys-freebsd/freebsd-sbin/files')
-rw-r--r-- | sys-freebsd/freebsd-sbin/files/devd.initd | 14 | ||||
-rw-r--r-- | sys-freebsd/freebsd-sbin/files/ipfw.initd | 10 | ||||
-rw-r--r-- | sys-freebsd/freebsd-sbin/files/sysctl.initd | 14 |
3 files changed, 20 insertions, 18 deletions
diff --git a/sys-freebsd/freebsd-sbin/files/devd.initd b/sys-freebsd/freebsd-sbin/files/devd.initd index b8414abb56b7..c2017f0d589f 100644 --- a/sys-freebsd/freebsd-sbin/files/devd.initd +++ b/sys-freebsd/freebsd-sbin/files/devd.initd @@ -16,31 +16,31 @@ start() { # This is used by /etc/devd_queue mkdir -p /var/run/devd - ebegin $"Starting the Device State Change Daemon" + ebegin "Starting the Device State Change Daemon" sysctl hw.bus.devctl_disable=0 >/dev/null start-stop-daemon --start --exec /sbin/devd \ --pidfile /var/run/devd.pid - eend $? $"Failed to start devd" \ + eend $? "Failed to start devd" \ || return $? - ebegin $"Waiting for Device State Change Daemon to settle" - LC_ALL=C sleep ${DEVD_WAIT:-2} + ebegin "Waiting for Device State Change Daemon to settle" + LC_ALL=C sleep "${DEVD_WAIT:-2}" eend $? # Now flush the queue - einfo $"Flushing Device State Change Daemon queue" + einfo "Flushing Device State Change Daemon queue" # Flush the output buffer eflush /etc/devd_queue flush - mark_service_starting "${SVCNAME}" + mark_service_started "${SVCNAME}" return 0 } stop() { - ebegin $"Stopping the Device State Change Daemon" + ebegin "Stopping the Device State Change Daemon" sysctl hw.bus.devctl_disable=1 >/dev/null start-stop-daemon --stop --exec /sbin/devd \ --pidfile /var/run/devd.pid diff --git a/sys-freebsd/freebsd-sbin/files/ipfw.initd b/sys-freebsd/freebsd-sbin/files/ipfw.initd index 27242befaa33..71118e7bea22 100644 --- a/sys-freebsd/freebsd-sbin/files/ipfw.initd +++ b/sys-freebsd/freebsd-sbin/files/ipfw.initd @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sbin/files/ipfw.initd,v 1.1 2006/04/01 16:43:51 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sbin/files/ipfw.initd,v 1.2 2007/02/23 13:56:05 uberlord Exp $ depend() { before net @@ -19,7 +19,7 @@ start() { fi fi - if [ -z "${firewall_script}" -o ! -f "${firewall_script}" ]; then + if [ -z "${firewall_script}" ] || [ ! -f "${firewall_script}" ]; then firewall_script=/etc/rc.firewall fi @@ -27,12 +27,12 @@ start() { source "${firewall_script}" einfo "Loaded firewall rules; starting daemons" - if [ "${natd_enable}" == "yes" ]; then + if [ "${natd_enable}" = "yes" ]; then # Find out whether $natd_interface is using dhcp ifconfig_natd_iface=$( eval source /etc/conf.d/net\; echo \$\{ifconfig_${natd_interface}\}) - if [ "${ifconfig_natd_iface}" == "dhcp" ]; then + if [ "${ifconfig_natd_iface}" = "dhcp" ]; then natd_flags="${natd_flags} -dynamic" fi @@ -54,7 +54,7 @@ start() { fi # Logging - if [ "${firewall_logging}" == "yes" ]; then + if [ "${firewall_logging}" = "yes" ]; then einfo "Enabling firewall logging" sysctl net.inet.ip.fw.verbose=1 >/dev/null fi diff --git a/sys-freebsd/freebsd-sbin/files/sysctl.initd b/sys-freebsd/freebsd-sbin/files/sysctl.initd index e719061a2978..12974a00aac7 100644 --- a/sys-freebsd/freebsd-sbin/files/sysctl.initd +++ b/sys-freebsd/freebsd-sbin/files/sysctl.initd @@ -1,26 +1,28 @@ #!/sbin/runscript # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sbin/files/sysctl.initd,v 1.3 2006/10/03 13:38:06 uberlord Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-freebsd/freebsd-sbin/files/sysctl.initd,v 1.4 2007/02/23 13:56:05 uberlord Exp $ depend() { need checkroot } start() { - ebegin $"Configuring kernel parameters" + ebegin "Configuring kernel parameters" - if [[ ! -f /etc/sysctl.conf ]]; then - eend 1 "/etc/sysctl.conf" $"not found" + if [ ! -f /etc/sysctl.conf ]; then + eend 1 "/etc/sysctl.conf" "not found" return 1 fi local retval=0 var= comments= while read var comments ; do - [[ -z ${var} || ${var} == "#"* ]] && continue + case "${var}" in + ""|"#"*) continue;; + esac sysctl "${var}" >/dev/null || retval=1 done < /etc/sysctl.conf - eend ${retval} $"Some errors were encountered" + eend ${retval} "Some errors were encountered" } # vim: set ts=4 : |