OpenWrt – Blame information for rev 1

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
9 wd,mybooklive)
10 if [ -b $BOOTPART ]; then
11 mkdir -p /boot
12 mount -t ext4 -o rw,noatime $BOOTPART /boot
13 [ -f /boot/sysupgrade.tgz ] && mv -f /boot/sysupgrade.tgz /
14 fi
15 ;;
16 *)
17 ;;
18 esac
19 }
20  
21 boot_hook_add preinit_mount_root move_config