diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2009-12-04 17:49:31 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2009-12-04 17:49:31 +0100 |
commit | 6045422139a0dbbefaf508b1343f11535d6b104e (patch) | |
tree | 40b9addde163397c5639279186e1b49a0705f05c /package/base-files/extra/sbin | |
parent | 9f3987b09bded00d382e3fdd99bdf1afe106455f (diff) | |
parent | 5d93cc6de511d5330d0d0c7a0ebae8e6c9638e3d (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/base-files/extra/sbin')
-rwxr-xr-x | package/base-files/extra/sbin/update | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/package/base-files/extra/sbin/update b/package/base-files/extra/sbin/update index a812bb23d..10d6e58c2 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 -xf - check_exit } extract_from_ssh() { - ssh $1 "cat $2" | tar -xzvf - + ssh $1 "cat $2" | gunzip -c | tar -xf - check_exit } extract_from_http() { - wget -O - $1 | tar -xzvf - + wget -O - $1 | gunzip -c | tar -xf - check_exit } @@ -60,7 +59,6 @@ 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." +echo "Update sucessful. You should reboot now." |