summaryrefslogtreecommitdiff
path: root/package/base-files/extra/sbin/update
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files/extra/sbin/update')
-rwxr-xr-xpackage/base-files/extra/sbin/update14
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."