projects
/
openwrt
/
staging
/
lynxis.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
apm821xx: convert to device-tree board detection
[openwrt/staging/lynxis.git]
/
target
/
linux
/
apm821xx
/
base-files
/
lib
/
preinit
/
79_move_config
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
wd
,
mybooklive-duo
)
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