mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
Also create .gz images if configured to do so. This is equivalent, but different to what we have in trunk, as the image creation has been rewritten there. Signed-off-by: Bruno Randolf <br1@einfach.org> git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@47604 3c298f89-4303-0410-b956-a3cf2f4a3e73
19 lines
352 B
Bash
19 lines
352 B
Bash
#!/bin/sh
|
|
# Copyright (C) 2015 OpenWrt.org
|
|
|
|
BOOTPART=/dev/mmcblk0p1
|
|
|
|
move_config() {
|
|
if [ -b $BOOTPART ]; then
|
|
insmod nls_cp437
|
|
insmod nls_iso8859-1
|
|
insmod fat
|
|
insmod vfat
|
|
mount -t vfat -o rw,noatime $BOOTPART /mnt
|
|
[ -f /mnt/sysupgrade.tgz ] && mv -f /mnt/sysupgrade.tgz /
|
|
umount /mnt
|
|
fi
|
|
}
|
|
|
|
boot_hook_add preinit_mount_root move_config
|