#! /bin/sh # # ISDN Start ISDN networking services. # # Author: Mark Worsdall, # Various folks at Red Hat # See how we were called. case "$1" in start) echo -n "Starting ISDN services: " # Make sure module is in and working # Do manually as it is not doone by rest of boot sequence /sbin/depmod -a /sbin/modprobe hisax # Set verbose log level number /sbin/isdnctrl verbose 15 # Add a device (add more if you like) /sbin/isdnctrl addif ippp0 # Set the hangup time for idle connection # IMPORTANT not too short dependent upon your carriers costs /sbin/isdnctrl huptimeout ippp0 65 # Add telephone numbers for our ISP, just keep adding them # for more numbers /sbin/isdnctrl addphone ippp0 out 08452120667 # Demon Green ROMP /sbin/isdnctrl addphone ippp0 out 08450798667 # Demon Red ROMP /sbin/isdnctrl addphone ippp0 out 08453505033 # Demon Black ROMP # Your UK ISDN telephone number /sbin/isdnctrl eaz ippp0 0800000000 # This number is fake # Set protocol level types (for more details see 'man isdnctrl') /sbin/isdnctrl l2_prot ippp0 hdlc /sbin/isdnctrl l3_prot ippp0 trans # We are using ppp so set to syncppp (for more details see 'man isdnctrl') /sbin/isdnctrl encap ippp0 syncppp # Binds the device (for more details see 'man isdnctrl') /sbin/isdnctrl pppbind ippp0 0 # This will only answer incoming calls if the incoming number # is in the incoming access list /sbin/isdnctrl secure ippp0 on # Finally set the dial mode for on-demand dialup /sbin/isdnctrl dialmode all auto # No for comfort sake display some details about the # isdn interface ippp0 /sbin/isdnctrl list ippp0 /sbin/isdnctrl status ippp0 echo ;; stop) /sbin/isdnctrl hangup ippp0 # Delete a device (delete more if you like) /sbin/isdnctrl delif ippp0 # No for comfort sake display some details about the # isdn interface ippp0 /sbin/isdnctrl list ippp0 /sbin/isdnctrl status ippp0 echo "ISDN services for ippp0 down" echo ;; status) # No for comfort sake display some details about the # isdn interface ippp0 /sbin/isdnctrl list ippp0 /sbin/isdnctrl status ippp0 ;; restart|reload) # Add a device (add more if you like) /sbin/isdnctrl addif ippp0 # No for comfort sake display some details about the # isdn interface ippp0 /sbin/isdnctrl list ippp0 /sbin/isdnctrl status ippp0 ;; *) echo "Usage: inet {start|stop|status|restart|reload}" exit 1 esac exit 0