From d89c077bd8905bdd079d69b11bedc1eb440067b9 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 29 Nov 2009 12:46:11 +0100 Subject: add etables, finetune squid package, more busybox finetuning --- package/base-files/extra/sbin/update | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'package/base-files/extra/sbin/update') 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." -- cgit v1.2.3