summarylogtreecommitdiffstats
path: root/wireless-regdb.install
blob: 8bf2692f717e085b6e456990f3a5af1c79ee8455 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 DE, US, 00, GB & BO
  echo "best use domain BO - full channels @ 30db modded"
  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
}