Merge r4174
[project/luci.git] / modules / admin-core / root / etc / init.d / luci_hosts
index 3c1034a..ae94714 100755 (executable)
@@ -18,6 +18,8 @@ start() {
                ln -s /var/etc/hosts /etc/hosts
        fi
 
+       echo "# This file is autogenerated, use /etc/hosts.local instead" > /var/etc/hosts
+
        test -d /var/etc || mkdir -p /var/etc
        test -f /etc/hosts.local && cat /etc/hosts.local >> /var/etc/hosts