#! /bin/sh # # Start / stop script voor baycom_epp modem. # Berto van Oorspronk # Datum: 05-04-2004 # Filenaam: bay . /etc/rc.status case "$1" in start) echo "Starting parallelport driver" insmod parport_pc io=0x378 irq=7 echo "Starting ax25 driver" # insmod ax25 # Zit in de kernel gecompileerd echo "Starting mkiss driver" insmod mkiss echo "Starting BaycomEPP driver" insmod baycom_epp iobase=0x378 mode='extstat divider=8 fclk=19666600 bps=153600' ifconfig bce0 44.137.44.31 netmask 255.255.0.0 broadcast 44.137.255.255 mtu 1500 hw ax25 PA3HFN-3 up echo "Setup modem settings" sethdlc -i bce0 -p io 0x378 irq 7 dma 3 -a txd 130 txtail 10 slot 10 ppersist 255 half /sbin/arp -H ax25 -s 44.137.44.92 PA3HFN-4 route add 44.137.44.92 dev bce0 ;; stop) echo "Stopping BaycomEPP driver" ifconfig bce0 down rmmod baycom_epp rmmod mkiss rmmod parport_pc ;; restart) $0 stop $0 start ;; *) echo "Usage: $0 {start|stop|force-reload|reload|status}" exit 1 ;; esac