mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-19 15:33:56 +00:00
Make it a good-mannered rcNG script respectful to the command line.
This commit is contained in:
parent
c825862e6c
commit
eb03e6374a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=150691
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user