diff options
author | Renato Botelho <renato@netgate.com> | 2017-09-27 10:15:10 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-09-27 10:16:24 -0300 |
commit | c1bc10f25476273c2fbcd4a91d79bfbb7e0d558b (patch) | |
tree | f8303aff6b367bfbfe0f9f66aaaa6324c21b8617 /release | |
parent | af82535b64140120f3f665b46a9b415f252a800a (diff) | |
download | FreeBSD-src-c1bc10f25476273c2fbcd4a91d79bfbb7e0d558b.zip FreeBSD-src-c1bc10f25476273c2fbcd4a91d79bfbb7e0d558b.tar.gz |
Execute factory-pre.sh if it exists
Diffstat (limited to 'release')
-rwxr-xr-x | release/rc.local | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/release/rc.local b/release/rc.local index 9976645..f0a868f 100755 --- a/release/rc.local +++ b/release/rc.local @@ -25,6 +25,10 @@ if [ -e /dev/ufs/pfSense_Install -a ! -d /tmp/usb_install_media ]; then mount /dev/ufs/pfSense_Install /tmp/usb_install_media fi +if [ -f /root/factory-pre.sh ]; then + sh -x /root/factory-pre.sh >/tmp/factory-pre.debug 2>&1 +fi + MACHINE=`uname -m` # resolv.conf from DHCP ends up in here, so make sure the directory exists |