OpenWrt – Blame information for rev 3

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 #!/bin/sh
2  
3 BOOTPART=/dev/sda1
4  
5 move_config() {
6 . /lib/functions.sh
7  
8 case "$(board_name)" in
3 office 9 wd,mybooklive|\
10 wd,mybooklive-duo)
1 office 11 if [ -b $BOOTPART ]; then
12 mkdir -p /boot
13 mount -t ext4 -o rw,noatime $BOOTPART /boot
14 [ -f /boot/sysupgrade.tgz ] && mv -f /boot/sysupgrade.tgz /
15 fi
16 ;;
17 *)
18 ;;
19 esac
20 }
21  
22 boot_hook_add preinit_mount_root move_config