projects
/
openwrt
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
treewide: don't hardcode "sysupgrade.tgz" file name
[openwrt/openwrt.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
.
/
lib
/
upgrade
/
common.sh
8
9
case
"$(board_name)"
in
10
wd
,
mybooklive
)
11
if
[
-b
$BOOTPART
];
then
12
mkdir
-p
/
boot
13
mount
-t
ext4
-o
rw
,
noatime
$BOOTPART
/
boot
14
[
-f
"/boot/
$BACKUP_FILE
"
] &&
mv
-f
"/boot/
$BACKUP_FILE
"
/
15
fi
16
;;
17
*)
18
;;
19
esac
20
}
21
22
boot_hook_add preinit_mount_root move_config