79_move_config 335 B

1234567891011121314151617
  1. #!/bin/sh
  2. # Copyright (C) 2012-2015 OpenWrt.org
  3. move_config() {
  4. local partdev
  5. . /lib/upgrade/platform.sh
  6. if platform_export_bootdevice && platform_export_partdevice partdev 1; then
  7. mount -t ext4 -o rw,noatime "/dev/$partdev" /mnt
  8. mv -f /mnt/sysupgrade.tgz /
  9. umount /mnt
  10. fi
  11. }
  12. boot_hook_add preinit_mount_root move_config