projects
/
oweals
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
7c651b8a134df4e636e7ebb9419eecac2b6b3858
[oweals/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
if [ -b $BOOTPART ]; then
7
mkdir -p /boot
8
mount -t ext4 -o rw,noatime $BOOTPART /boot
9
[ -f /boot/sysupgrade.tgz ] && mv -f /boot/sysupgrade.tgz /
10
fi
11
}
12
13
boot_hook_add preinit_mount_root move_config