Make it a good-mannered rcNG script respectful to the command line.

This commit is contained in:
yar 2005-09-28 16:24:47 +00:00
parent 60f0244e87
commit 0dc753e21a

View File

@ -11,7 +11,8 @@
. /etc/rc.subr
name=archdep
load_rc_config $name
start_cmd="archdep_start"
stop_cmd=":"
# should we print out unaligned access warnings?
#
@ -53,18 +54,24 @@ ibcs2_compat()
fi
}
_arch=`${SYSCTL_N} hw.machine`
echo -n "Initial $_arch initialization:"
case $_arch in
i386)
ibcs2_compat
;;
alpha)
osf1_compat
unaligned_warnings
;;
ia64)
unaligned_warnings
;;
esac
echo '.'
archdep_start()
{
_arch=`${SYSCTL_N} hw.machine`
echo -n "Initial $_arch initialization:"
case $_arch in
i386)
ibcs2_compat
;;
alpha)
osf1_compat
unaligned_warnings
;;
ia64)
unaligned_warnings
;;
esac
echo '.'
}
load_rc_config $name
run_rc_command "$1"