diff options
Diffstat (limited to 'target/linux/ipq806x/base-files/sbin')
-rwxr-xr-x | target/linux/ipq806x/base-files/sbin/asrock_g10_back_to_factory | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/target/linux/ipq806x/base-files/sbin/asrock_g10_back_to_factory b/target/linux/ipq806x/base-files/sbin/asrock_g10_back_to_factory new file mode 100755 index 0000000000..55aa91eab6 --- /dev/null +++ b/target/linux/ipq806x/base-files/sbin/asrock_g10_back_to_factory @@ -0,0 +1,16 @@ +#!/bin/sh + +. /lib/upgrade/asrock.sh + +case $(board_name) in +asrock,g10) + asrock_bootconfig_mangle "factory" + if [ $? -eq 0 ]; then + reboot + fi + ;; +*) + echo "Unsupported hardware." + ;; +esac + |