base-files: move xor() from caldata extraction to functions.sh
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sat, 28 Sep 2019 13:12:55 +0000 (15:12 +0200)
committerDavid Bauer <mail@david-bauer.net>
Sun, 13 Oct 2019 17:03:57 +0000 (19:03 +0200)
commitc1388a2deb00b65ee4a06c0a1d4c461f2194ef38
treecb5d3c0aec1212d942d41b0315674110d37db528
parentbba6646b5cba591946b3fd0caaad79cb6ec78043
base-files: move xor() from caldata extraction to functions.sh

The xor() function is defined in each of the caldata extraction
scripts for several targets. Move it to functions.sh to reduce
duplicate code.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
package/base-files/files/lib/functions.sh
target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
target/linux/ipq40xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
target/linux/ipq806x/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
target/linux/lantiq/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom