Is /etc/rc.local called twice on boot?

Oliver Grawert ogra at ubuntu.com
Tue Oct 26 10:50:25 UTC 2021


hi,
Am Dienstag, dem 26.10.2021 um 11:42 +0200 schrieb Bo Berglund:
> 
> IPAddr=$(ifconfig eth0|grep "inet "|sed 's/ *inet //;s/ .*//')
> IPMac=$(ifconfig eth0 | grep -Eo ..\(\:..\){5})
> 
independent from your particular double execution issue, you should
note that ifconfig (and ifupdown alongside) have long been abandoned in
debian and ubuntu ...

you should use "ip addr show dev eth0" on modern distros 

ciao
	oli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20211026/17807b5e/attachment.sig>


More information about the ubuntu-users mailing list