Explorar o código

do not remount rw

Waldemar Brodkorb %!s(int64=11) %!d(string=hai) anos
pai
achega
4423cc01c2
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      package/base-files/src/etc/init.d/rcS

+ 4 - 1
package/base-files/src/etc/init.d/rcS

@@ -20,7 +20,10 @@ mdev -s
 cat /etc/.rnd >/dev/urandom 2>&1
 
 # setup cfgfs
-[ -x /sbin/cfgfs ] && { cfgfs setup; mount -o remount,ro /;} || mount -o remount,rw /
+[ -x /sbin/cfgfs ] && {
+	cfgfs setup
+	mount -o remount,ro /
+}
 
 # remount /tmp with smaller size
 size=$(cat /etc/tmpfs 2>/dev/null)