2014-12-05 08:58:25 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Copyright (C) 2014 OpenWrt.org
|
|
|
|
|
|
|
|
move_config() {
|
2016-01-29 23:19:41 +00:00
|
|
|
case "$(cat /tmp/sysinfo/board_name)" in
|
2014-12-05 08:58:25 +00:00
|
|
|
erlite)
|
|
|
|
mount -t vfat /dev/sda1 /mnt
|
2017-02-15 05:36:21 +00:00
|
|
|
[ -f /mnt/sysupgrade.tgz ] && mv -f /mnt/sysupgrade.tgz /
|
2014-12-05 08:58:25 +00:00
|
|
|
umount /mnt
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
|
|
|
|
boot_hook_add preinit_mount_root move_config
|