On Thu, 13 Nov 2025 01:10:27 +0100,
Kenneth Hendrickson <[email protected]> wrote:
>
> Is there any badness that might occur from having hostname.if files for an
> interface that doesn't exist??
>
> For example, having hostname.re1 on a host that doesn't have an re1 interface.
>
~ $ ifconfig ure0
ure0: no such interface
~ $ cat /etc/hostname.ure0
inet autoconf
inet6 autoconf
up
~ $ cat /etc/hotplug/attach
#!/bin/sh
DEVCLASS=$1
case $DEVCLASS in
3)
sh /etc/netstart $DEVNAME
;;
esac
~ $
When I attach my USB ethernet, it automatically get's IP address and starts
network. But when it doesn't attached... Well, nothing happens.
--
wbr, Kirill