nxdrvlinux/templates/udev/cifxeth
Sebastian Doell ac2f4d1789 Add initial driver source based on svn versions:
- toolkit V2.8.0.1@14806
 - BSL V1.8.0.0@14590
 - tcpserver: V1.4.3.0@14676 (marshaller V2.4.0.1@14551)
2024-02-05 09:23:09 +01:00

37 lines
548 B
Bash
Executable File

#!/bin/sh -e
### BEGIN INIT INFO
# Provides: netX based virtual ethernet interfaces
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# Default-Start:
# Default-Stop:
# Short-Description: Raise and configure the netX based virtual ethernet interfaces
### END INIT INFO
case "$1" in
start)
ifconfig $2 up
# default to dhcp
dhclient $2
;;
stop)
ifconfig $2 down
;;
force-reload|restart)
ifconfig $2 down
ifconfig $2 up
dhclient $2
;;
*)
echo "Usage: /etc/init.d/cifxeth {start|stop}"
exit 1
;;
esac
exit 0