Changeset View
Changeset View
Standalone View
Standalone View
libexec/rc/rc.d/localpkg
| Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | for script in `reverse_list ${slist} ${zlist}`; do | ||||
| fi | fi | ||||
| if [ -x "${script}" ]; then | if [ -x "${script}" ]; then | ||||
| if [ `sysctl -n debug.bootverbose` -eq 1 ]; then | if [ `sysctl -n debug.bootverbose` -eq 1 ]; then | ||||
| echo "==>" ${script} | echo "==>" ${script} | ||||
| fi | fi | ||||
| (set -T | (set -T | ||||
| trap 'exit 1' 2 | trap 'exit 1' 2 | ||||
| ${script} stop) | ${script} stop) | ||||
| elif [ -f "${script}" -o -L "${script}" ]; then | |||||
| echo -n " (skipping ${script##*/}, not executable)" | |||||
| fi | fi | ||||
| done | done | ||||
| [ -n "${initdone}" ] && echo '.' | [ -n "${initdone}" ] && echo '.' | ||||
| ;; | ;; | ||||
| esac | esac | ||||
| } | } | ||||
| load_rc_config $name | load_rc_config $name | ||||
| # doesn't make sense to run in a svcj: other rc.d scripts need to decide on their own | |||||
| localpkg_svcj="NO" | |||||
| run_rc_command "$1" | run_rc_command "$1" | ||||