From afa09b720058b99bec2c8bc200477ef5dbe75bde Mon Sep 17 00:00:00 2001 From: ljm42 Date: Tue, 2 Dec 2025 14:06:56 -0700 Subject: [PATCH] refactor: remove numeric prefixes on hosts.d files --- etc/rc.d/rc.S.cont | 5 ++--- etc/rc.d/rc.avahidaemon | 2 +- sbin/rebuild_hosts | 13 ++++++------- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/etc/rc.d/rc.S.cont b/etc/rc.d/rc.S.cont index 0c550e58e..b44429a79 100755 --- a/etc/rc.d/rc.S.cont +++ b/etc/rc.d/rc.S.cont @@ -229,9 +229,8 @@ fi /bin/mkdir -p /etc/hosts.d { /bin/echo "# Do not edit, generated by rc.S.cont" - /bin/echo "127.0.0.1 ${NAME} localhost" - /bin/echo "::1 localhost" -} >/etc/hosts.d/00-base + /bin/echo "127.0.0.1 ${NAME}" +} >/etc/hosts.d/hostname /usr/local/sbin/rebuild_hosts # LimeTech - restore the configured timezone diff --git a/etc/rc.d/rc.avahidaemon b/etc/rc.d/rc.avahidaemon index dfbd1f9ee..69814edbc 100755 --- a/etc/rc.d/rc.avahidaemon +++ b/etc/rc.d/rc.avahidaemon @@ -30,7 +30,7 @@ DAEMON="Avahi mDNS/DNS-SD daemon" CALLER="avahi" AVAHI="/usr/sbin/avahi-daemon" CONF="/etc/avahi/avahi-daemon.conf" -HOSTS="/etc/hosts.d/05-avahi" +HOSTS="/etc/hosts.d/avahi" NAME=$(