blob: 1278769d1f2c32dd89a4a8599a3985877d022546 [file] [log] [blame]
Alexander Filippov83aa32a2020-06-08 12:51:56 +03001#!/bin/sh -eu
2
3VLAN='VLAN=eth0.4004'
4ETH0_CFG='/etc/systemd/network/00-bmc-eth0.network'
5
6if ( ! grep -q "${VLAN}" ${ETH0_CFG} ); then
7 sed -i "/^\[Network\]$/a ${VLAN}" ${ETH0_CFG}
8fi