mirror of
https://github.com/bin456789/reinstall.git
synced 2025-01-18 20:39:14 +08:00
28 lines
683 B
Desktop File
28 lines
683 B
Desktop File
[Unit]
|
|
Description=Fix Eth Name
|
|
ConditionPathExists=/fix-eth-name.sh
|
|
|
|
After=dbus.service
|
|
|
|
Before=cloud-init-local.service
|
|
Before=network.service
|
|
Before=networking.service
|
|
Before=systemd-networkd.service
|
|
Before=NetworkManager.service
|
|
Before=wickedd-auto4.service
|
|
Before=wickedd-dhcp4.service
|
|
Before=wickedd-dhcp6.service
|
|
Before=wickedd.service
|
|
|
|
Before=network.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/usr/bin/env bash /fix-eth-name.sh
|
|
ExecStart=/usr/bin/env rm -f /fix-eth-name.sh
|
|
ExecStart=/usr/bin/env rm -f /etc/systemd/system/fix-eth-name.service
|
|
ExecStart=/usr/bin/env rm -f /etc/systemd/system/multi-user.target.wants/fix-eth-name.service
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|