mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 01:24:38 +00:00
rc.freebsd, escape - sign
This commit is contained in:
parent
ce8ef9930b
commit
f8547f27cd
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user