summaryrefslogtreecommitdiff
path: root/package/base-files
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-12-04 18:10:24 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2009-12-04 18:10:24 +0100
commitb047da059a1042a27ba68b1bdc50dd187bd362f4 (patch)
tree5529bdac03674fab07bb4335fc5ce4e5654c7497 /package/base-files
parent5d93cc6de511d5330d0d0c7a0ebae8e6c9638e3d (diff)
update kernel to 2.6.32
- update some applications asterisk, curl, strace, radvd, rpm - fix allconfig - /dev for full build seems to need more than 64k
Diffstat (limited to 'package/base-files')
-rwxr-xr-xpackage/base-files/extra/init2
-rwxr-xr-xpackage/base-files/extra/sbin/update12
2 files changed, 10 insertions, 4 deletions
diff --git a/package/base-files/extra/init b/package/base-files/extra/init
index db8c3a676..e11446366 100755
--- a/package/base-files/extra/init
+++ b/package/base-files/extra/init
@@ -8,7 +8,7 @@ mount -o nosuid,nodev,noexec -t sysfs sysfs /sys
mount none /tmp -t tmpfs -o size=${size}k
mount none /tmp -t tmpfs -o remount,nosuid,nodev,mode=1777
}
-mount -o nosuid,size=64k,mode=0755 -t tmpfs mdev /dev
+mount -o nosuid,size=128k,mode=0755 -t tmpfs mdev /dev
mkdir /dev/pts /dev/shm
mount -o nosuid,noexec -t devpts devpts /dev/pts
exec 0<>/dev/console >&0 2>&0
diff --git a/package/base-files/extra/sbin/update b/package/base-files/extra/sbin/update
index 10d6e58c2..0cd4ee713 100755
--- a/package/base-files/extra/sbin/update
+++ b/package/base-files/extra/sbin/update
@@ -6,9 +6,6 @@ if [ $who -ne 0 ]; then
exit 1
fi
-cd /
-umount -f /etc
-mount -o remount,rw /
check_exit() {
if [ $? -ne 0 ];then
@@ -17,17 +14,26 @@ check_exit() {
fi
}
+prepare() {
+ cd /
+ umount -f /etc
+ mount -o remount,rw /
+}
+
extract_from_file() {
+ prepare
cat $1 | gunzip -c | tar -xf -
check_exit
}
extract_from_ssh() {
+ prepare
ssh $1 "cat $2" | gunzip -c | tar -xf -
check_exit
}
extract_from_http() {
+ prepare
wget -O - $1 | gunzip -c | tar -xf -
check_exit
}