summaryrefslogtreecommitdiffstats
path: root/applications/luci-app-advanced-reboot/root/usr/share/advanced-reboot/helpers/linksys-mx6200.sh
blob: 0c0ceb26ad069353f16a5e73a268597474267d03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
# advanced-reboot helper for Linksys MX6200
# Sets bootconfig partitions after fw_setenv boot_part has been called.
# Usage: linksys-mx6200.sh <partition_number>

. /lib/upgrade/platform.sh

case "$1" in
	1)
		linksys_bootconfig_set_primaryboot "0:bootconfig" 0
		linksys_bootconfig_set_primaryboot "0:bootconfig1" 0
		;;
	2)
		linksys_bootconfig_set_primaryboot "0:bootconfig" 1
		linksys_bootconfig_set_primaryboot "0:bootconfig1" 1
		;;
	*)
		exit 1
		;;
esac