base-files: create /etc/ethers by default
authorLuiz Angelo Daros de Luca <luizluca@gmail.com>
Sun, 19 Aug 2018 01:53:07 +0000 (22:53 -0300)
committerHans Dedecker <dedeckeh@gmail.com>
Tue, 21 Aug 2018 13:55:00 +0000 (15:55 +0200)
/etc/ethers is missing on /rom but always created when dnsmasq
runs. It is better to have it in place and avoid an extra change
in flash after firstboot.

It will generate an extra /etc/ethers-opkg when it has changed.

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
package/base-files/Makefile
package/base-files/files/etc/ethers [new file with mode: 0644]

index b72b17ee16763b95558bb8ea78d61a265e863538..52669444ee052747ff0172af9383f1ef0fa4b5a6 100644 (file)
@@ -49,6 +49,7 @@ define Package/base-files/conffiles
 /etc/config/system
 /etc/crontabs/
 /etc/dropbear/
+/etc/ethers
 /etc/group
 /etc/hosts
 /etc/inittab
diff --git a/package/base-files/files/etc/ethers b/package/base-files/files/etc/ethers
new file mode 100644 (file)
index 0000000..b92c200
--- /dev/null
@@ -0,0 +1,6 @@
+#
+#  Lookup man 5 ethers for syntax documentation
+#
+#  Examples :
+#      02:00:11:22:33:44       OpenWrt.lan
+#      02:00:11:22:33:44       192.168.1.1