Apply SIGINT restoration to new module layout
[wifi-radar.git] / debian / postinst
blob2ad5ddca16f5e47641cc3315b48e4a38982912cd
1 #!/bin/sh
3 set -e
5 WLAN=`iwconfig 2>/dev/null |grep IEEE |cut -d' ' -f1| head -n1`
7 if [ ! -e /etc/wifi-radar.conf ]; then
8 echo "[DEFAULT]" >> /etc/wifi-radar.conf
9 echo "interface = $WLAN" >> /etc/wifi-radar.conf
10 echo "speak_up = False" >> /etc/wifi-radar.conf
11 echo "scan_timeout = 5" >> /etc/wifi-radar.conf
12 echo "commit_required = False" >> /etc/wifi-radar.conf
13 echo "ifup_required = False" >> /etc/wifi-radar.conf
14 echo "auto_profile_order =" >> /etc/wifi-radar.conf
16 chmod 600 /etc/wifi-radar.conf
18 update-rc.d wifi-radar defaults >/dev/null
19 #DEBHELPER#