summaryrefslogtreecommitdiffstats
path: root/etc/rc.firmware
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-04-16 00:13:53 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-04-16 00:13:53 +0000
commitbf7b4fcc7742cbe69008748b5fb129f5efdfa398 (patch)
tree0155bcd5de781846fe5303753edb0e02ab6316c4 /etc/rc.firmware
parent3901cd3b81c316295630e12d6f2bf3faffe2e6b4 (diff)
downloadpfsense-bf7b4fcc7742cbe69008748b5fb129f5efdfa398.zip
pfsense-bf7b4fcc7742cbe69008748b5fb129f5efdfa398.tar.gz
Switch to cd / && tar instead of -C to avoid:
tar: Error opening archive: Failed to open '-C': No such file or directory
Diffstat (limited to 'etc/rc.firmware')
-rwxr-xr-xetc/rc.firmware4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/rc.firmware b/etc/rc.firmware
index b86b4ce..c6a525f 100755
--- a/etc/rc.firmware
+++ b/etc/rc.firmware
@@ -163,7 +163,9 @@ pfSenseupgrade)
# process custom image if its passed
if [ -r $CUSTOMIMG ]; then
echo "Custom image $CUSTOMIMG found." | logger -p daemon.info -i -t Upgrade
- /usr/bin/tar xzPUf $CUSTOMIMG -C / | logger -p daemon.info -i -t Upgrade
+ PWD_DIR=`pwd`
+ cd / && /usr/bin/tar xzPUf $CUSTOMIMG | logger -p daemon.info -i -t Upgrade
+ cd $PWD_DIR
echo "Custom image $CUSTOMIMG installed." | logger -p daemon.info -i -t Upgrade
fi
OpenPOWER on IntegriCloud