Browse Source

safe one line

Waldemar Brodkorb 13 years ago
parent
commit
8fd3d1b92a
2 changed files with 4 additions and 5 deletions
  1. 1 1
      package/base-files/Makefile
  2. 3 4
      package/base-files/src/init

+ 1 - 1
package/base-files/Makefile

@@ -6,7 +6,7 @@ include $(TOPDIR)/mk/rootfs.mk
 
 PKG_NAME:=		base-files
 PKG_VERSION:=		1.0
-PKG_RELEASE:=		27
+PKG_RELEASE:=		28
 PKG_SECTION:=		base
 PKG_DESCR:=		basic files and scripts
 

+ 3 - 4
package/base-files/src/init

@@ -4,10 +4,9 @@ export PATH=/bin:/sbin:/usr/bin:/usr/sbin
 mount -nt proc proc /proc
 mount -o nosuid,nodev,noexec -t sysfs sysfs /sys
 [ ! -f /etc/notmpfs ] && {
-	size=$(cat /etc/tmpfs 2>/dev/null)
-	[ -z $size ] && size=2048
-	mount none /tmp -t tmpfs -o size=${size}k
-	mount none /tmp -t tmpfs -o remount,nosuid,nodev,mode=1777
+  size=$(cat /etc/tmpfs 2>/dev/null)
+  [ -z $size ] && size=2048
+  mount none /tmp -t tmpfs -o remount,nosuid,nodev,mode=1777,size=${size}k
 }
 mount -o remount,nosuid,size=128k,mode=0755 -t tmpfs mdev /dev
 mkdir /dev/pts /dev/shm