Skip to content

Commit bb6d399

Browse files
committed
config/network/index: Also change the link to supervise symlink
In the section talking about interface-specific dhcpcd, the run script is modified with sed to have the proper interface name, but there is also the supervise symlink, pointing into /run/runit. The target is "supervise.dhcpcd-eth0", which kind of works as-is, until you also have an actual eth0 interface that is handled by a dhcpcd supervised by runit. So to avoid having this misleading symlink, change it to a proper target: "supervise.dhcpcd-enp3s0" in the sample code. Signed-off-by: Vincent Legoll <vincent.legoll@gmail.com>
1 parent b595ab0 commit bb6d399

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/config/network/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ $ ip link show
5050
2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
5151
link/ether ff:ff:ff:ff:ff:ff brd ff:ff:ff:f
5252
# cp -R /etc/sv/dhcpcd-eth0 /etc/sv/dhcpcd-enp3s0
53+
# ln -nsf /run/runit/supervise.dhcpcd-enp3s0 /etc/sv/dhcpcd-enp3s0/supervise"
5354
# sed -i 's/eth0/enp3s0/' /etc/sv/dhcpcd-enp3s0/run
5455
# ln -s /etc/sv/dhcpcd-enp3s0 /var/service/
5556
```

0 commit comments

Comments
 (0)