summaryrefslogtreecommitdiff
path: root/package/base-files/extra
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-11-29 12:46:11 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2009-11-29 12:46:11 +0100
commitd89c077bd8905bdd079d69b11bedc1eb440067b9 (patch)
tree2c7bd2a8b642bd1ba0383adc4259bfe53b8515ec /package/base-files/extra
parent706b94b351d574c66f9a6142f5bcae33a98274f3 (diff)
add etables, finetune squid package, more busybox finetuning
Diffstat (limited to 'package/base-files/extra')
-rw-r--r--package/base-files/extra/etc/profile6
-rwxr-xr-xpackage/base-files/extra/sbin/update11
2 files changed, 8 insertions, 9 deletions
diff --git a/package/base-files/extra/etc/profile b/package/base-files/extra/etc/profile
index 798548a46..1b8f4a6a6 100644
--- a/package/base-files/extra/etc/profile
+++ b/package/base-files/extra/etc/profile
@@ -1,12 +1,12 @@
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
+export TERM=vt220
if [[ $(id -u) = 0 ]]; then
export PS1='# '
else
export PS1='$ '
+ export HOME=/tmp
fi
-export HOME=/tmp
cat /etc/banner 2>&-
-[ -x /usr/bin/less ] || alias less=more
-[ -x /usr/bin/vim ] || alias vim=vi
+[ -x /usr/bin/vim ] && alias vi=vim || alias vim=vi
[ -x /usr/bin/arp ] || arp() { cat /proc/net/arp; }
[ -x /usr/bin/ldd ] || ldd() { LD_TRACE_LOADED_OBJECTS=1 "$@"; }
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."