summaryrefslogtreecommitdiffstats
path: root/etc/rc.firmware
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-07-04 09:44:17 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-07-04 09:44:17 -0300
commit2e906a1a9b5ebf1aa00df12c38dfb10bb9f5bb70 (patch)
tree3fdf946a751ce16d405a077186971b8ba92afd85 /etc/rc.firmware
parentbe0af33ee0137cc92272b5f5c5c1a4a70bce82f2 (diff)
downloadpfsense-2e906a1a9b5ebf1aa00df12c38dfb10bb9f5bb70.zip
pfsense-2e906a1a9b5ebf1aa00df12c38dfb10bb9f5bb70.tar.gz
Add one more seatbelt to prevent tar to attempt to overwrite /dev items
Diffstat (limited to 'etc/rc.firmware')
-rwxr-xr-xetc/rc.firmware2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.firmware b/etc/rc.firmware
index 5350e6a..aa3d992 100755
--- a/etc/rc.firmware
+++ b/etc/rc.firmware
@@ -439,7 +439,7 @@ pfSenseupgrade)
killall -9 check_reload_status
killall -9 check_reload_status
echo "Installing $IMG." >> /conf/upgrade_log.txt 2>&1
- cd / && /usr/bin/tar xzUPf $IMG >> /conf/upgrade_log.txt 2>&1
+ cd / && /usr/bin/tar --exclude=./dev -xzUPf $IMG >> /conf/upgrade_log.txt 2>&1
/usr/local/sbin/check_reload_status
echo "Image installed $IMG." >> /conf/upgrade_log.txt 2>&1
OpenPOWER on IntegriCloud