diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-07-04 09:44:17 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-07-04 09:44:17 -0300 |
commit | 2e906a1a9b5ebf1aa00df12c38dfb10bb9f5bb70 (patch) | |
tree | 3fdf946a751ce16d405a077186971b8ba92afd85 /etc/rc.firmware | |
parent | be0af33ee0137cc92272b5f5c5c1a4a70bce82f2 (diff) | |
download | pfsense-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-x | etc/rc.firmware | 2 |
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 |