summaryrefslogtreecommitdiffstats
path: root/etc/rc.firmware
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-04-12 21:58:52 +0000
committerBill Marquette <billm@pfsense.org>2005-04-12 21:58:52 +0000
commita739eb02dbd4a760da254fca8db3148060f07a51 (patch)
tree96b7abac2b373a777ac0a6866277aa022fc95b17 /etc/rc.firmware
parent341735e0eb9b08b15e94f92a6a51e1296befd1b7 (diff)
downloadpfsense-a739eb02dbd4a760da254fca8db3148060f07a51.zip
pfsense-a739eb02dbd4a760da254fca8db3148060f07a51.tar.gz
fix the tar, move bspatch where it belongs
Diffstat (limited to 'etc/rc.firmware')
-rwxr-xr-xetc/rc.firmware4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.firmware b/etc/rc.firmware
index 31f50c1..08ee413 100755
--- a/etc/rc.firmware
+++ b/etc/rc.firmware
@@ -110,9 +110,9 @@ binary_update() {
cd /tmp/patched
for i in `tar tzf $TGZ | egrep -v "(^\./\.*/$|^\./$|.md5)"`;
do (
- /usr/local/bin/bspatch /${i} /tmp/${i} /tmp/patched/${i};
echo "Working on ${i}";
- /usr/bin/tar xvzf ${TGZ} ${i}*;
+ /usr/bin/tar xvzf ${TGZ} ${i} ${i}.old_file_md5 ${i}.new_patch_md5 ${i}.new_file_md5;
+ /usr/local/bin/bspatch /${i} /tmp/${i} /tmp/patched/${i};
OLD_FILE_MD5=`cat /tmp/${i}.old_file_md5`;
NEW_PATCH_MD5=`cat /tmp/${i}.new_patch_md5`;
NEW_FILE_MD5=`cat /tmp/${i}.new_file_md5`;
OpenPOWER on IntegriCloud