From 0dc753e21a7fca194bb595b83b807fc1ca9e2b94 Mon Sep 17 00:00:00 2001 From: yar Date: Wed, 28 Sep 2005 16:24:47 +0000 Subject: [PATCH] Make it a good-mannered rcNG script respectful to the command line. --- etc/rc.d/archdep | 39 +++++++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/etc/rc.d/archdep b/etc/rc.d/archdep index da93e8ba860c..fac13448d6cf 100644 --- a/etc/rc.d/archdep +++ b/etc/rc.d/archdep @@ -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"