#! /bin/bash
#
# Author: Thonix <http://www.thonix.net>, 2002
#
# /etc/init.d/ncpfs
#
case "$1" in
start)
/usr/local/bin/ipx_configure --auto_primary=on
/usr/local/bin/ipx_interface add
eth0 802.2
;;
stop)
/usr/local/bin/ipx_configure --auto_primary=off
/usr/local/bin/ipx_interface del
802.2
;;
status)
/usr/local/bin/ipx_configure
ifconfig eth0 | grep "IPX/Ethernet"
| sed s/" "//
;;
restart)
;;
*)
echo "Usage: $0 {start|stop|restart|status}"
exit 1
esac
|