Last active
December 20, 2015 01:39
-
-
Save eldondev/6050513 to your computer and use it in GitHub Desktop.
TP-LINK WR-703N extroot setup script, ripped savagely from https://forum.openwrt.org/viewtopic.php?id=42259
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Ripped savagely from https://forum.openwrt.org/viewtopic.php?id=42259 | |
opkg remove ppp* uhttpd luci* kmod-ppp* --force-removal-of-dependent-packages | |
opkg update | |
opkg install kmod-fs-ext4 kmod-usb-storage | |
opkg install block-mount | |
mount /dev/sda1 /mnt | |
mkdir /tmp/root | |
mount -o bind / /tmp/root | |
cp -a /tmp/root/* /mnt | |
umount /tmp/root | |
umount /mnt | |
uci set fstab.automount=global | |
uci set fstab.automount.from_fstab=1 | |
uci set fstab.automount.anon_mount=0 | |
uci set fstab.@mount[0]=mount | |
uci set fstab.@mount[0].device=/dev/sda1 | |
uci set fstab.@mount[0].enabled_fsck=0 | |
uci set fstab.@mount[0].fstype=ext2 | |
uci set fstab.@mount[0].options=rw,relatime,barrier=1,data=ordered | |
uci set fstab.@mount[0].enabled=1 | |
uci set fstab.@mount[0].is_rootfs=1 | |
uci commit fstab |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Will this work for 15.05-rc3? I tried extroot, but there isn't enough space for kmod-fs-ext4. And if I understood correctly from the forum, running opkg remove on packages installed on ROM, doesn't free up any space unless it was installed on overlay.