summaryrefslogtreecommitdiffstats
path: root/abs/extra/wireless-regdb/wireless-regdb.install
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra/wireless-regdb/wireless-regdb.install')
-rw-r--r--abs/extra/wireless-regdb/wireless-regdb.install13
1 files changed, 13 insertions, 0 deletions
diff --git a/abs/extra/wireless-regdb/wireless-regdb.install b/abs/extra/wireless-regdb/wireless-regdb.install
new file mode 100644
index 0000000..ae712db
--- /dev/null
+++ b/abs/extra/wireless-regdb/wireless-regdb.install
@@ -0,0 +1,13 @@
+post_install() {
+ post_upgrade
+}
+
+post_upgrade() {
+ # If crda is installed, we verify the integrity of the database
+ # If not, we skip this step silently
+ if [ -x /sbin/regdbdump ]; then
+ if ! /sbin/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
+}