daily pastebin goal
63%
SHARE
TWEET

Untitled

a guest Apr 16th, 2017 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2. #
  3. # /etc/rc.d/enp10s0: start/stop network
  4. #
  5.  
  6. case $1 in
  7. start)
  8.         # ethernet
  9.         /sbin/ip addr add 172.16.0.1/12 dev enp10s0 broadcast +
  10.         /sbin/ip link set enp10s0 up
  11.         ;;
  12. stop)
  13.         /sbin/ip link set enp10s0 down
  14.         /sbin/ip addr flush dev enp10s0
  15.         ;;
  16. restart)
  17.         $0 stop
  18.         $0 start
  19.         ;;
  20. *)
  21.         echo "usage: $0 [start|stop|restart]"
  22.         ;;
  23. esac
  24.  
  25. # End of file
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top