blob: 2c72a2a758085ee52bc15448a3c3f578c8707e17 [file] [log] [blame]
[Unit]
Description=First Boot Disable IPMI Network
After=phosphor-ipmi-net@eth0.service
After=phosphor-ipmi-net@eth1.service
After=phosphor-ipmi-net@eth0.socket
After=phosphor-ipmi-net@eth1.socket
Before=srvcfg-manager.service
ConditionPathExists=!/var/lib/ipmi-net-disable-one-time
[Service]
ExecStart=/bin/systemctl stop phosphor-ipmi-net@eth0.socket
ExecStart=/bin/systemctl disable phosphor-ipmi-net@eth0.socket
ExecStart=/bin/systemctl stop phosphor-ipmi-net@eth0.service
ExecStart=/bin/systemctl disable phosphor-ipmi-net@eth0.service
ExecStart=/bin/systemctl stop phosphor-ipmi-net@eth1.socket
ExecStart=/bin/systemctl disable phosphor-ipmi-net@eth1.socket
ExecStart=/bin/systemctl stop phosphor-ipmi-net@eth1.service
ExecStart=/bin/systemctl disable phosphor-ipmi-net@eth1.service
ExecStart=/bin/touch /var/lib/ipmi-net-disable-one-time
SyslogIdentifier=first-boot-disable-ipmi-net
Type=oneshot
RemainAfterExit=Yes
[Install]
WantedBy=multi-user.target