Since IPv6-only setups are becoming more common, and IPv6 connectivity is often sufficient for tasks such as DNS resolution and NTP time synchronization, we should consider updating this rc.d script.
I have been testing D56637 recently, and if this change is accepted and lands, it will also require an update to the defaultroute script. However, regardless of the status of D56637, the defaultroute script can be made network stack–independent and support both inet and inet6.
If the kernel supports neither INET nor INET6 (which is theoretically possible), the script will return immediately, as it did previously when INET support was absent.