From b188977e74f686e821906528f1f97628eb49bb1b Mon Sep 17 00:00:00 2001 From: jc_gargma Date: Fri, 15 Mar 2019 15:09:53 -0700 Subject: Initial commit --- wireless-regdb.install | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 wireless-regdb.install (limited to 'wireless-regdb.install') diff --git a/wireless-regdb.install b/wireless-regdb.install new file mode 100644 index 0000000..cc224a7 --- /dev/null +++ b/wireless-regdb.install @@ -0,0 +1,16 @@ +post_install() { + echo "Uncomment the right regulatory domain in /etc/conf.d/wireless-regdom." + echo "It will automatically be set on boot." + echo "Modified domains are 00, CN, GB + post_upgrade +} + +post_upgrade() { + # If crda is installed, we verify the integrity of the database + # If not, we skip this step silently + if [ -x /usr/bin/regdbdump ]; then + if ! /usr/bin/regdbdump /usr/lib/crda/regulatory.bin > /dev/null; then + echo "Failed to verify the integrity of the wireless regulatory database, CRDA will not work." + fi + fi +} -- cgit v1.2.1