rc.freebsd, escape - sign

This commit is contained in:
Ad Schellevis 2017-05-08 11:32:52 +02:00
parent ce8ef9930b
commit f8547f27cd

View File

@ -22,6 +22,7 @@ ls /usr/local/etc/rc.d/* /etc/rc.d/* | while read rc_filename; do
if [ "$is_enabled" == "YES" ]; then
if [ "$1" == "start" ]; then
pre_run_var="`basename $rc_filename`_opnsense_bootup_run"
pre_run_var="`echo $pre_run_var | /usr/bin/sed 's/-/\-/g'`"
eval "pre_run=\$"$pre_run_var""
if [ ! -z "$pre_run" ]; then
eval "$pre_run"