diff options
author | Chris Buechler <cmb@pfsense.org> | 2015-11-18 17:32:09 -0600 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2015-11-18 17:32:09 -0600 |
commit | 3329e8a1775e99ad529b062afa50591c1c3cd49a (patch) | |
tree | add2067f3d34b6c1f5fec3fee1d11223802ed880 /src/etc/rc.initial | |
parent | 597241a96ec96af26a71cb58f7b3a8e2e3eebd06 (diff) | |
download | pfsense-3329e8a1775e99ad529b062afa50591c1c3cd49a.zip pfsense-3329e8a1775e99ad529b062afa50591c1c3cd49a.tar.gz |
handle -c parameters in rc.initial. Ticket #4422
Diffstat (limited to 'src/etc/rc.initial')
-rwxr-xr-x | src/etc/rc.initial | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/etc/rc.initial b/src/etc/rc.initial index 94b0ec5..ae78375 100755 --- a/src/etc/rc.initial +++ b/src/etc/rc.initial @@ -28,6 +28,18 @@ if [ -f /etc/rc.local ]; then fi fi +# Parse command line parameters +while [ $# -gt 0 ]; do + case $1 in + -c ) shift + /bin/sh -c $1 + exit + ;; + * ) + esac + shift +done + CONFIG="/cf/conf/config.xml" WORD="https" |