diff options
author | Bill Marquette <billm@pfsense.org> | 2005-04-12 22:14:11 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-04-12 22:14:11 +0000 |
commit | e7fb2f76afdb5366a50835e5a35f6d417b6bca55 (patch) | |
tree | 80fcbd7501b68030f0c2dd72cb9d44b65c2b6b5f /etc/rc.firmware | |
parent | 2d4f9a65c651c83117d0d7d523eb2746f7d2e27b (diff) | |
download | pfsense-e7fb2f76afdb5366a50835e5a35f6d417b6bca55.zip pfsense-e7fb2f76afdb5366a50835e5a35f6d417b6bca55.tar.gz |
comments
Diffstat (limited to 'etc/rc.firmware')
-rwxr-xr-x | etc/rc.firmware | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/rc.firmware b/etc/rc.firmware index e2474c5..18788cf 100755 --- a/etc/rc.firmware +++ b/etc/rc.firmware @@ -20,8 +20,12 @@ binary_update() { for i in `tar tzf $TGZ | egrep -v "(^\./\.*/$|^\./$|.md5)"`; do ( echo "Working on ${i}"; + # Untar patch file and md5 files /usr/bin/tar xvzf ${TGZ} ${i} ${i}.old_file_md5 ${i}.new_patch_md5 ${i}.new_file_md5; + + # Apply patch - oldfile newfile patchfile /usr/local/bin/bspatch /${i} /tmp/patched/${i} /tmp/patches/${i}; + OLD_FILE_MD5=`cat /tmp/patches/${i}.old_file_md5`; NEW_PATCH_MD5=`cat /tmp/patches/${i}.new_patch_md5`; NEW_FILE_MD5=`cat /tmp/patches/${i}.new_file_md5`; @@ -32,6 +36,7 @@ binary_update() { echo "${i} file does not match intended final md5."; echo "${i} file does not match intended final md5." >> /tmp/errors; fi + /bin/rm /tmp/patched/${i} /bin/rm /tmp/patches/${i} /bin/rm /tmp/patches/${i}.*; |