Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #
- # /etc/rc.d/enp10s0: start/stop network
- #
- case $1 in
- start)
- # ethernet
- /sbin/ip addr add 172.16.0.1/12 dev enp10s0 broadcast +
- /sbin/ip link set enp10s0 up
- ;;
- stop)
- /sbin/ip link set enp10s0 down
- /sbin/ip addr flush dev enp10s0
- ;;
- restart)
- $0 stop
- $0 start
- ;;
- *)
- echo "usage: $0 [start|stop|restart]"
- ;;
- esac
- # End of file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement