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