From The Compiler, 6 Years ago, written in Plain Text.
Embed
  1. [Unit]
  2. Description=Network Connectivity
  3. Wants=network.target
  4. Before=network.target
  5.  
  6. [Service]
  7. Type=oneshot
  8. RemainAfterExit=yes
  9. EnvironmentFile=/etc/conf.d/network
  10. ExecStart=/sbin/ip link set dev ${interface} up
  11. ExecStart=/sbin/ip addr add ${address}/${netmask} broadcast ${broadcast} dev ${interface}
  12. ExecStart=/sbin/ip route add default via ${gateway}
  13. ExecStop=/sbin/ip addr flush dev ${interface}
  14. ExecStop=/sbin/ip link set dev ${interface} down
  15.  
  16. [Install]
  17. WantedBy=multi-user.target