mirror of
https://github.com/bin456789/reinstall.git
synced 2025-01-18 12:36:26 +08:00
27 lines
572 B
Plaintext
27 lines
572 B
Plaintext
#!/sbin/openrc-run
|
|
|
|
Description="Fix Eth Name"
|
|
|
|
# https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/main/openrc/networking.initd
|
|
# https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/main/dhcpcd/dhcpcd.initd
|
|
depend() {
|
|
need localmount
|
|
want dev-settle
|
|
|
|
after bootmisc hwdrivers modules
|
|
before net networking dhcpcd
|
|
}
|
|
|
|
start() {
|
|
ebegin "Fix Eth Name"
|
|
ash /fix-eth-name.sh
|
|
eend $?
|
|
}
|
|
|
|
start_post() {
|
|
rc-service fix-eth-name zap
|
|
rc-update del fix-eth-name boot
|
|
rm -f /etc/init.d/fix-eth-name
|
|
rm -f /fix-eth-name.sh
|
|
}
|