unified preinit environment
[openwrt.git] / package / base-files / files / bin / firstboot
index ef2ba57..267e673 100755 (executable)
@@ -79,8 +79,6 @@ ramoverlay() {
        }
 
        [ "$1" = "switch2jffs" ] && {
-               mtd erase "$partname"
-
                # try to avoid fs changing while copying
                mount -o remount,ro none / 2>&-
 
@@ -103,8 +101,6 @@ ramoverlay() {
                # this will almost always fail
                umount /tmp/root 2>&-
 
-               # fs is clean
-               jffs2root --clean
                exit 0
        }