79_move_config 280 B

1234567891011121314
  1. #!/bin/sh
  2. # Copyright (C) 2014 OpenWrt.org
  3. move_config() {
  4. case "$(cat /tmp/sysinfo/board_name)" in
  5. erlite)
  6. mount -t vfat /dev/sda1 /mnt
  7. [ -f /mnt/sysupgrade.tgz ] && mv -f /mnt/sysupgrade.tgz /
  8. umount /mnt
  9. ;;
  10. esac
  11. }
  12. boot_hook_add preinit_mount_root move_config