Changeset bc707c7 in freewrt
- Timestamp:
- Aug 15, 2025, 2:32:37 PM (4 months ago)
- Branches:
- freewrt_2_0
- Children:
- 0ab6b7d
- Parents:
- 18c227bd
- git-author:
- Waldemar Brodkorb <wbx@…> (08/15/25 14:31:22)
- git-committer:
- Waldemar Brodkorb <wbx@…> (08/15/25 14:32:37)
- File:
-
- 1 edited
-
target/linux/brcm-6.12/jffs2/files/sbin/mount_root (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
target/linux/brcm-6.12/jffs2/files/sbin/mount_root
r18c227bd rbc707c7 1 1 #!/bin/sh 2 3 size=$(awk '/Mem:/ {l=5242880;print((s=$2/2)<l)?$2-l:s}' /proc/meminfo) 4 mount none /tmp -t tmpfs -o size=$size 5 6 mtd unlock linux 7 # check if a data partition exist, if not remount / read-write 8 if [ $(grep data /proc/mtd|wc -l) = 1 ]; then 9 mtd erase data 10 jffs2root --move --reboot 11 else 12 mount -o remount,rw /dev/root / 13 fi 14 2 mount none /tmp -t tmpfs 15 3 mount none /tmp -t tmpfs -o remount,nosuid,nodev,mode=1777 16 mkdir -p /dev/pts17 mount none /dev/pts -t devpts
Note:
See TracChangeset
for help on using the changeset viewer.
