Commit 5081e25b authored by Franco Fichtner's avatar Franco Fichtner

rc: syshook print improvements

(cherry picked from commit 9a117cd0)
parent a8a4d37e
#!/bin/sh #!/bin/sh
# Copyright (c) 2015 Franco Fichtner <franco@opnsense.org> # Copyright (c) 2015-2016 Franco Fichtner <franco@opnsense.org>
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions # modification, are permitted provided that the following conditions
...@@ -55,10 +55,10 @@ for SYSHOOK in ${SYSHOOKS}; do ...@@ -55,10 +55,10 @@ for SYSHOOK in ${SYSHOOKS}; do
SYSHOOK=${SYSHOOK##"${SYSDIR}/"} SYSHOOK=${SYSHOOK##"${SYSDIR}/"}
SYSHOOK=${SYSHOOK%%".${SYSLEVEL}"} SYSHOOK=${SYSHOOK%%".${SYSLEVEL}"}
echo "rc.syshook: launching ${SYSHOOK}.${SYSLEVEL}" echo "rc.syshook(${SYSLEVEL}): running ${SYSHOOK#??-}"
if ! ${SYSDIR}/${SYSHOOK}.${SYSLEVEL}; then if ! ${SYSDIR}/${SYSHOOK}.${SYSLEVEL}; then
echo "rc.syshook: error in ${SYSHOOK}.${SYSLEVEL}" echo "rc.syshook(${SYSLEVEL}): error in ${SYSHOOK#??-}"
fi fi
done done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment