Massive whitespace cleanup

This commit is contained in:
Roy Marples
2007-11-28 15:45:03 +00:00
parent 444f23e2d1
commit ac9279cc0d
68 changed files with 613 additions and 608 deletions

View File

@@ -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

View File

@@ -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 $?

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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 $?

View File

@@ -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