treewide: drop shebang from non-executable lib files
[openwrt/openwrt.git] / target / linux / tegra / base-files / lib / preinit / 79_move_config
1 move_config() {
2 local partdev
3
4 . /lib/upgrade/common.sh
5
6 if export_bootdevice && export_partdevice partdev 1; then
7 mkdir -p /boot
8 if mount -o ro,noatime "/dev/$partdev" /boot; then
9 if [ -f "/boot/$BACKUP_FILE" ]; then
10 mount /boot -o remount,rw,noatime
11 mv -f "/boot/$BACKUP_FILE" /
12 fi
13 umount /boot
14 rm -fR /boot
15 fi
16 fi
17 }
18
19 boot_hook_add preinit_mount_root move_config