diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2009-11-29 12:46:11 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2009-11-29 12:46:11 +0100 |
commit | d89c077bd8905bdd079d69b11bedc1eb440067b9 (patch) | |
tree | 2c7bd2a8b642bd1ba0383adc4259bfe53b8515ec /package/base-files/extra/sbin/update | |
parent | 706b94b351d574c66f9a6142f5bcae33a98274f3 (diff) |
add etables, finetune squid package, more busybox finetuning
Diffstat (limited to 'package/base-files/extra/sbin/update')
-rwxr-xr-x | package/base-files/extra/sbin/update | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/package/base-files/extra/sbin/update b/package/base-files/extra/sbin/update index a812bb23d..83807ccf5 100755 --- a/package/base-files/extra/sbin/update +++ b/package/base-files/extra/sbin/update @@ -7,9 +7,8 @@ if [ $who -ne 0 ]; then fi cd / - +umount -f /etc mount -o remount,rw / -umount /etc check_exit() { if [ $? -ne 0 ];then @@ -19,17 +18,17 @@ check_exit() { } extract_from_file() { - tar -xzvf $1 + cat $1 | gunzip -c | tar -xvf - check_exit } extract_from_ssh() { - ssh $1 "cat $2" | tar -xzvf - + ssh $1 "cat $2" | gunzip -c | tar -xvf - check_exit } extract_from_http() { - wget -O - $1 | tar -xzvf - + wget -O - $1 | gunzip -c | tar -xvf - check_exit } @@ -60,7 +59,7 @@ case $1 in esac sync -mount --bind /etc /tmp/.cfgfs/root +mount -o bind /etc /tmp/.cfgfs/root echo "Check with cfgfs status if you need to merge and save any changes in /etc." echo "You should reboot now." |