projects
/
oweals
/
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
[oweals/openwrt.git]
/
target
/
linux
/
octeon
/
base-files
/
lib
/
preinit
/
79_move_config
1
#!/bin/sh
2
# Copyright (C) 2014 OpenWrt.org
3
4
move_config() {
5
. /lib/functions.sh
6
. /lib/upgrade/common.sh
7
8
case "$(board_name)" in
9
erlite)
10
mount -t vfat /dev/sda1 /mnt
11
[ -f "/mnt/$BACKUP_FILE" ] && mv -f "/mnt/$BACKUP_FILE" /
12
umount /mnt
13
;;
14
esac
15
}
16
17
boot_hook_add preinit_mount_root move_config