summarylogtreecommitdiffstats
path: root/wireless-regdb.install
blob: ae712dbe875c8fcec43e9fb9c95df1b12d8b1ed8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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
}