mirror of https://github.com/OpenIPC/firmware.git
Remove temporary sdcard scripts
parent
b4f96e47d3
commit
c8d8f9507f
|
@ -13,16 +13,6 @@ grep -q overlay /proc/filesystems || exit
|
||||||
if ! grep -q 'root=.*nfs\|mmcblk\|ram' /proc/cmdline; then
|
if ! grep -q 'root=.*nfs\|mmcblk\|ram' /proc/cmdline; then
|
||||||
if grep -q ubifs /proc/cmdline; then
|
if grep -q ubifs /proc/cmdline; then
|
||||||
mount -t ubifs ubi0:rootfs_data /overlay
|
mount -t ubifs ubi0:rootfs_data /overlay
|
||||||
# The code block is disabled until a fix is made due to a global problem with the overlay
|
|
||||||
# elif grep -q loop /proc/devices; then
|
|
||||||
# mount -t devtmpfs devtmpfs /dev
|
|
||||||
# mount -t tmpfs tmpfs /overlay
|
|
||||||
# sleep 1
|
|
||||||
# mkdir -p /overlay/sdcard
|
|
||||||
# mount -r /dev/mmcblk0p1 /overlay/sdcard
|
|
||||||
# tar -xf /overlay/sdcard/settings.tar -C /overlay && echo OpenIPC: Extract settings from sdcard
|
|
||||||
# umount /overlay/sdcard
|
|
||||||
# rmdir /overlay/sdcard
|
|
||||||
else
|
else
|
||||||
mtdblkdev=$(awk -F ':' '/rootfs_data/ {print $1}' /proc/mtd | sed 's/mtd/mtdblock/')
|
mtdblkdev=$(awk -F ':' '/rootfs_data/ {print $1}' /proc/mtd | sed 's/mtd/mtdblock/')
|
||||||
mtdchrdev=$(grep 'rootfs_data' /proc/mtd | cut -d: -f1)
|
mtdchrdev=$(grep 'rootfs_data' /proc/mtd | cut -d: -f1)
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
if grep -q loop /proc/devices; then
|
|
||||||
tar -cf /tmp/settings.tar -C /overlay root
|
|
||||||
mv -f /tmp/settings.tar /mnt/mmcblk0p1 && echo OpenIPC: Save settings to sdcard
|
|
||||||
fi
|
|
Loading…
Reference in New Issue