create /var/run in firstboot
[openwrt.git] / openwrt / package / base-files / default / bin / firstboot
index 0828bda..6047218 100755 (executable)
@@ -17,7 +17,7 @@ jdev=$(mount | awk '/jffs2/ {print $3}')
 
 if [ -z "$jdev" ]; then
        echo -n "Creating jffs2 partition... "
-       mtd erase OpenWrt >&- 
+       mtd erase OpenWrt >&- 2>&-
        mount -t jffs2 /dev/mtdblock/4 /jffs
        echo "done"
        cd /jffs
@@ -60,3 +60,6 @@ mount none /tmp  -t ramfs
 umount /rom/proc
 umount /rom/tmp
 umount /rom/dev
+
+# normally created by boot script
+mkdir -p /var/run
This page took 0.030648 seconds and 4 git commands to generate.