blob: 92b8c3fb540bbfb0d4a3a2ba051cda04e345d655 [file] [log] [blame]
NodeMan97036d1d12022-06-17 09:27:51 -05001[Unit]
2Description=First Boot Disable IPMI Network
3After=phosphor-ipmi-net@eth0.service
4After=phosphor-ipmi-net@eth1.service
5After=phosphor-ipmi-net@eth0.socket
6After=phosphor-ipmi-net@eth1.socket
7Before=srvcfg-manager.service
8ConditionFileNotEmpty=!/var/lib/ipmi-net-disable-one-time
9
10[Service]
11ExecStart=/bin/systemctl stop phosphor-ipmi-net@eth0.socket
12ExecStart=/bin/systemctl disable phosphor-ipmi-net@eth0.socket
13ExecStart=/bin/systemctl stop phosphor-ipmi-net@eth0.service
14ExecStart=/bin/systemctl disable phosphor-ipmi-net@eth0.service
15ExecStart=/bin/systemctl stop phosphor-ipmi-net@eth1.socket
16ExecStart=/bin/systemctl disable phosphor-ipmi-net@eth1.socket
17ExecStart=/bin/systemctl stop phosphor-ipmi-net@eth1.service
18ExecStart=/bin/systemctl disable phosphor-ipmi-net@eth1.service
19ExecStart=/bin/systemctl --no-reload disable first-boot-disable-ipmi-net.service
20ExecStart=/bin/touch /var/lib/ipmi-net-disable-one-time
21SyslogIdentifier=first-boot-disable-ipmi-net
22Type=oneshot
23RemainAfterExit=Yes
24
25[Install]
26WantedBy=multi-user.target