diff options
author | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2019-03-15 15:09:53 -0700 |
---|---|---|
committer | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2019-03-15 15:09:53 -0700 |
commit | b188977e74f686e821906528f1f97628eb49bb1b (patch) | |
tree | 04fea4ad8de8cc307b421cf67be0835791e3dfb9 /wireless-regdb.install | |
download | wireless-regdb-pentest-b188977e74f686e821906528f1f97628eb49bb1b.tar.xz |
Initial commit
Diffstat (limited to 'wireless-regdb.install')
-rw-r--r-- | wireless-regdb.install | 16 |
1 files changed, 16 insertions, 0 deletions
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 +} |