diff options
author | yar <yar@FreeBSD.org> | 2005-09-28 16:24:47 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2005-09-28 16:24:47 +0000 |
commit | 0dc753e21a7fca194bb595b83b807fc1ca9e2b94 (patch) | |
tree | 4fe2f809f076b73b5c0efdd64c3e38a5abcb8ef1 /etc | |
parent | 60f0244e876cfe471dd5223cdf47bcfbba1d767b (diff) | |
download | FreeBSD-src-0dc753e21a7fca194bb595b83b807fc1ca9e2b94.zip FreeBSD-src-0dc753e21a7fca194bb595b83b807fc1ca9e2b94.tar.gz |
Make it a good-mannered rcNG script respectful to the command line.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/rc.d/archdep | 39 |
1 files changed, 23 insertions, 16 deletions
diff --git a/etc/rc.d/archdep b/etc/rc.d/archdep index da93e8b..fac1344 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" |