diff options
author | Roy Marples <roy@marples.name> | 2007-11-28 15:45:03 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-11-28 15:45:03 +0000 |
commit | ac9279cc0d5a00bc17908b2914941186020cd3ce (patch) | |
tree | 850a4fe19917113e75bfd2e79d00b58208468503 /init.d.BSD | |
parent | 444f23e2d158389b22d40537fc9b027d9f575229 (diff) |
Massive whitespace cleanup
Diffstat (limited to 'init.d.BSD')
-rwxr-xr-x | init.d.BSD/clock | 2 | ||||
-rwxr-xr-x | init.d.BSD/dumpon | 2 | ||||
-rw-r--r-- | init.d.BSD/ipfw | 8 | ||||
-rw-r--r-- | init.d.BSD/moused | 8 | ||||
-rwxr-xr-x | init.d.BSD/savecore | 2 | ||||
-rw-r--r-- | init.d.BSD/syscons | 2 | ||||
-rw-r--r-- | init.d.BSD/sysctl | 2 |
7 files changed, 13 insertions, 13 deletions
diff --git a/init.d.BSD/clock b/init.d.BSD/clock index 3bb51b77..d6dc8b5c 100755 --- a/init.d.BSD/clock +++ b/init.d.BSD/clock @@ -69,7 +69,7 @@ stop() { fi ebegin "Stopping the System Clock Adjuster" - if start-stop-daemon --test --quiet --stop --exec /sbin/adjkerntz ; then + if start-stop-daemon --test --quiet --stop --exec /sbin/adjkerntz; then start-stop-daemon --stop --exec /sbin/adjkerntz eend $? else diff --git a/init.d.BSD/dumpon b/init.d.BSD/dumpon index 1faf23b1..64876ab1 100755 --- a/init.d.BSD/dumpon +++ b/init.d.BSD/dumpon @@ -33,7 +33,7 @@ depend() { start() { # Setup any user requested dump device - if [ -n "${dump_device}" ] ; then + if [ -n "${dump_device}" ]; then ebegin "Activating kernel core dump device (${dump_device})" dumpon ${dump_device} eend $? diff --git a/init.d.BSD/ipfw b/init.d.BSD/ipfw index cdddfaeb..9dca799b 100644 --- a/init.d.BSD/ipfw +++ b/init.d.BSD/ipfw @@ -42,8 +42,8 @@ ipfw() { init() { # Load the kernel module - if ! sysctl net.inet.ip.fw.enable=1 >/dev/null 2>/dev/null; then - if ! kldload ipfw ; then + if ! sysctl net.inet.ip.fw.enable=1 >/dev/null 2>&1; then + if ! kldload ipfw; then eend 1 "Unable to load firewall module" return 1 fi @@ -68,7 +68,7 @@ init() { start() { local i= p= log= ebegin "Starting firewall rules" - if ! init ; then + if ! init; then eend 1 "Failed to flush firewall ruleset" return 1 fi @@ -157,7 +157,7 @@ stop() { panic() { ebegin "Stopping firewall rules - hard" - if ! init ; then + if ! init; then eend 1 "Failed to flush firewall ruleset" return 1 fi diff --git a/init.d.BSD/moused b/init.d.BSD/moused index 4610f20b..9534082b 100644 --- a/init.d.BSD/moused +++ b/init.d.BSD/moused @@ -24,7 +24,7 @@ # SUCH DAMAGE. mouse=${SVCNAME##*.} -if [ -n "${name}" -a "${mouse}" != "moused" ] ; then +if [ -n "${name}" -a "${mouse}" != "moused" ]; then moused_device=/dev/"${mouse}" pidfile=/var/run/moused-"${mouse}".pid else @@ -41,9 +41,9 @@ depend() { start() { ebegin "Starting ${name}" - if [ -z "${moused_device}" ] ; then + if [ -z "${moused_device}" ]; then local dev= - for dev in /dev/psm[0-9]* /dev/ums[0-9]* ; do + for dev in /dev/psm[0-9]* /dev/ums[0-9]*; do [ -c "${dev}" ] || continue [ -e /var/run/moused-"${dev##*/}".pid ] && continue moused_device=${dev} @@ -54,7 +54,7 @@ start() { done fi - if [ -z "${moused_device}" ] ; then + if [ -z "${moused_device}" ]; then eend 1 "No mouse device found" return 1 fi diff --git a/init.d.BSD/savecore b/init.d.BSD/savecore index 8d8577f9..053828ec 100755 --- a/init.d.BSD/savecore +++ b/init.d.BSD/savecore @@ -38,7 +38,7 @@ start() { chmod 700 "${dump_dir}" fi - if [ "${RC_UNAME}" = "FreeBSD" ] ; then + if [ "${RC_UNAME}" = "FreeBSD" ]; then # Don't quote ${dump_device}, so that if it's unset, # savecore will check on the partitions listed in fstab # without errors in the output diff --git a/init.d.BSD/syscons b/init.d.BSD/syscons index ae174f3b..c04ccff1 100644 --- a/init.d.BSD/syscons +++ b/init.d.BSD/syscons @@ -52,7 +52,7 @@ start() { ebegin "Changing function keys" eval set -- "${keychange}" eindent - while [ $# -gt 0 ] ; do + while [ $# -gt 0 ]; do veinfo "F$1 -> \`$2'" kbdcontrol -f "$1" "$2" </dev/console veend $? diff --git a/init.d.BSD/sysctl b/init.d.BSD/sysctl index 644b25a2..6507a09e 100644 --- a/init.d.BSD/sysctl +++ b/init.d.BSD/sysctl @@ -34,7 +34,7 @@ start() { ebegin "Configuring kernel parameters" local retval=0 var= comments= - while read var comments ; do + while read var comments; do case "${var}" in ""|"#"*) continue;; esac |