Skip to content

Commit

Permalink
misc_systemd_units: Add systemd.network generator from mxhost.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
pmenzel committed Apr 25, 2021
1 parent 195523b commit 99424a1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions misc_systemd_units/mxhost-to-systemd-network.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/sh
. /etc/local/mxhost.conf

mkdir -p /run/systemd/network
cat >/run/systemd/network/50-mxhost.network <<-EOF
[Match]
Name=$MX_NETDEV
[Network]
Address=$MX_IPADDR/20
Gateway=141.14.16.128
DNS=141.14.16.1
#molgen.mpg.de
EOF

0 comments on commit 99424a1

Please sign in to comment.