#!/bin/bash # Install the modem control software make -C driver install chown root.dip /usr/sbin/adictrl chmod 4750 /usr/sbin/adictrl # Install the hotplug scripts cd scripts install -c -m 0554 -o root -g root hotplug/adiusb* /etc/hotplug/usb install -c -m 0644 -o root -g root usb.usermap /etc/hotplug/usb/adiusb.usermap echo '/sbin/ifconfig $(/usr/sbin/adictrl -i) 192.168.60.30 netmask 255.255.255.0 up' >> /etc/hotplug/usb/adiusbdsp # woody uses an older hotplug which needs usb.usermap if ! grep -q unstable /etc/debian_version && ! grep -q testing /etc/debian_version then cat /etc/hotplug/usb/adiusb.usermap >> /etc/hotplug/usb.usermap.local update-usb.usermap fi # Install the PPP configuration scripts ./makescripts install -c -m 0640 -o root -g dip options.adsl /etc/ppp/peers/dsl-provider install -c -m 0640 -o root -g dip options.mire /etc/ppp/peers/dsl-mire install -c -m 0600 -o root -g dip *secrets /etc/ppp install -c -m 0750 -o root -g dip adsl/startadsl /etc/ppp/ppp_on_boot cat > /etc/ppp/ppp_on_boot << EOF # !/bin/sh # Wait for modem "operational" state: /usr/sbin/adictrl -s # Get the ADI network interface name: INTERFACE=`/usr/sbin/adictrl -i` # Start pppd : /usr/sbin/pppd call dsl-provider persist pty "/usr/sbin/pppoa -I $INTERFACE" EOF # Install PPPoA cd ../pppoa install -m 4750 -o root -g dip pppoa /usr/sbin cd /etc touch ppp/resolv.conf ln -s ppp/resolv.conf resolv.conf