Skip to content

Commit

Permalink
Import network.service
Browse files Browse the repository at this point in the history
Import network.service from a random system.
  • Loading branch information
donald committed May 16, 2019
1 parent 80fc7e2 commit 9e32b89
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,5 @@ install_data misc_etc_files/systemd/logind.conf.d/disable_RemoveIPC.conf \
install_data logrotate/logrotate.conf "$DESTDIR$sysconfdir/logrotate.conf"
install_data logrotate/logrotate.service "$DESTDIR$systemdunitdir/logrotate.service"
install_data logrotate/logrotate.timer "$DESTDIR$systemdunitdir/logrotate.timer"
install_data misc_systemd_units/network.service "$DESTDIR$systemdunitdir/network.service"
exit
16 changes: 16 additions & 0 deletions misc_systemd_units/network.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[Unit]
Description=Network Connectivity
DefaultDependencies=no

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/sbin/mxnetctl start
ExecStart=/sbin/ip addr add 141.14.31.7/20 broadcast 141.14.31.255 dev net00
ExecStart=/sbin/ip link set up dev net00
ExecStop=/sbin/ip addr del 141.14.31.7/20 dev net00
StandardOutput=syslog

[Install]
WantedBy=network.target

0 comments on commit 9e32b89

Please sign in to comment.