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)
committerJo-Philipp Wich <jo@mein.io>
Tue, 18 Dec 2018 10:28:11 +0000 (11:28 +0100)
/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>
(backported from d810d44e5a88e7ed5a72f8cd39fc57639aa6dbd0)

package/base-files/Makefile
package/base-files/files/etc/ethers [new file with mode: 0644]

index 04a863a..0fdbc40 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