OpenWrt – Blame information for rev 4
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
4 | office | 1 | #!/bin/sh |
2 | # Copyright (C) 2015 OpenWrt.org |
||
3 | |||
4 | BOOTPART=/dev/mmcblk0p1 |
||
5 | |||
6 | move_config() { |
||
7 | if [ -b $BOOTPART ]; then |
||
8 | insmod nls_cp437 |
||
9 | insmod nls_iso8859-1 |
||
10 | insmod fat |
||
11 | insmod vfat |
||
12 | mkdir -p /boot |
||
13 | mount -t vfat -o rw,noatime $BOOTPART /boot |
||
14 | [ -f /boot/sysupgrade.tgz ] && mv -f /boot/sysupgrade.tgz / |
||
15 | fi |
||
16 | } |
||
17 | |||
18 | boot_hook_add preinit_mount_root move_config |