79_move_config 298 B

1234567891011121314
  1. #!/bin/sh
  2. BOOTPART=/dev/sda1
  3. move_config() {
  4. grep -q 'MyBook Live' /proc/cpuinfo || return
  5. if [ -b $BOOTPART ]; then
  6. mkdir -p /boot
  7. mount -t ext4 -o rw,noatime $BOOTPART /boot
  8. [ -f /boot/sysupgrade.tgz ] && mv -f /boot/sysupgrade.tgz /
  9. fi
  10. }
  11. boot_hook_add preinit_mount_root move_config