mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
rc: improve print of syshook invokes
This commit is contained in:
parent
24403a5122
commit
355939b228
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Copyright (c) 2015-2016 Franco Fichtner <franco@opnsense.org>
|
||||
# Copyright (c) 2015-2017 Franco Fichtner <franco@opnsense.org>
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
@ -54,11 +54,12 @@ for SYSHOOK in ${SYSHOOKS}; do
|
||||
# extract syshook origin
|
||||
SYSHOOK=${SYSHOOK##"${SYSDIR}/"}
|
||||
SYSHOOK=${SYSHOOK%%".${SYSLEVEL}"}
|
||||
SYSNAME=${SYSHOOK#??-}
|
||||
|
||||
echo "rc.syshook(${SYSLEVEL}): running ${SYSHOOK#??-}"
|
||||
echo ">>> Invoking ${SYSLEVEL} script '${SYSNAME}'"
|
||||
|
||||
if ! ${SYSDIR}/${SYSHOOK}.${SYSLEVEL}; then
|
||||
echo "rc.syshook(${SYSLEVEL}): error in ${SYSHOOK#??-}"
|
||||
echo ">>> Error in ${SYSLEVEL} script '${SYSNAME}'"
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
@ -1,2 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
/usr/local/sbin/beep.sh stop
|
||||
|
||||
@ -1,2 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
/usr/local/etc/rc.freebsd start
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo -n "Starting Cron: "
|
||||
configctl cron restart
|
||||
|
||||
@ -1,2 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
/usr/local/sbin/beep.sh start
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user