home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / ip / ppp / dp-2.3 / sys / postdpload < prev    next >
Encoding:
Text File  |  1993-01-28  |  597 b   |  40 lines

  1. #!/bin/sh
  2. #
  3. # Make devices and start daemons for dialup ppp
  4.  
  5. DEVICE=/dev/dp0
  6. . /etc/dp.conf
  7.  
  8. rm -f $DEVICE
  9. mknod $DEVICE c $4 0
  10.  
  11. rm -f $DPLOG_DIR/ID.dp
  12. echo $1 > $DPLOG_DIR/ID.dp
  13.  
  14. #
  15. # ifconfig selected interfaces
  16. #
  17. if [ -f $DPCONF_DIR/dp-if ]; then
  18.     cat $DPCONF_DIR/dp-if | (
  19.         while read IFNAME LOCAL REMOTE
  20.         do
  21.             if [ "`echo $IFNAME | cut -c1`"X != "#"X ]; then
  22.                 ifconfig $IFNAME $LOCAL $REMOTE up -trailers netmask +
  23.             fi
  24.         done
  25.     )
  26. fi
  27.  
  28. #
  29. # Clear the log file - comment this out if you want
  30. #
  31. rm $DPLOG_DIR/dp.log
  32.  
  33. #
  34. # start the daemon
  35. #
  36. if [ -f $DPBIN_DIR/dpd ]; then
  37.     $DPBIN_DIR/dpd
  38. fi
  39.  
  40.