diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2019-11-11 14:48:17 +0100 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2019-11-11 14:53:06 +0100 |
commit | 1c321237c29202e0ed5c168c625cc89fcabb609c (patch) | |
tree | 5bfc1dde83152502c727bb3d48596f2f829c8d34 /target/linux/ramips/mt7621 | |
parent | 5dc535419fe5f59839686570545fc4180e14d545 (diff) | |
download | upstream-1c321237c29202e0ed5c168c625cc89fcabb609c.tar.gz upstream-1c321237c29202e0ed5c168c625cc89fcabb609c.tar.bz2 upstream-1c321237c29202e0ed5c168c625cc89fcabb609c.zip |
ramips: split further base-files across subtargets
As started in 19724e28c81e ("ramips: split base-files into
subtargets"), this moves some smaller left-over files to the
appropriate base-files folder of their subtarget:
- /etc/init.d/bootcount
- /etc/uci-defaults/04_led_migration
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ramips/mt7621')
-rwxr-xr-x | target/linux/ramips/mt7621/base-files/etc/init.d/bootcount | 11 | ||||
-rw-r--r-- | target/linux/ramips/mt7621/base-files/etc/uci-defaults/04_led_migration | 16 |
2 files changed, 27 insertions, 0 deletions
diff --git a/target/linux/ramips/mt7621/base-files/etc/init.d/bootcount b/target/linux/ramips/mt7621/base-files/etc/init.d/bootcount new file mode 100755 index 0000000000..807801a34f --- /dev/null +++ b/target/linux/ramips/mt7621/base-files/etc/init.d/bootcount @@ -0,0 +1,11 @@ +#!/bin/sh /etc/rc.common + +START=99 + +boot() { + case $(board_name) in + samknows,whitebox-v8) + fw_setenv bootcount 0 + ;; + esac +} diff --git a/target/linux/ramips/mt7621/base-files/etc/uci-defaults/04_led_migration b/target/linux/ramips/mt7621/base-files/etc/uci-defaults/04_led_migration new file mode 100644 index 0000000000..e745c2c5d4 --- /dev/null +++ b/target/linux/ramips/mt7621/base-files/etc/uci-defaults/04_led_migration @@ -0,0 +1,16 @@ +#!/bin/sh + +. /lib/functions.sh +. /lib/functions/migrations.sh + +board=$(board_name) + +case "$board" in +netgear,wndr3700-v5) + migrate_leds "^wndr3700v5:=wndr3700-v5:" + ;; +esac + +migrations_apply system + +exit 0 |