packaging: include dnsmasq config file 64/203664/2
authorJaehoon Chung <jh80.chung@samsung.com>
Tue, 16 Apr 2019 11:07:33 +0000 (20:07 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Wed, 17 Apr 2019 05:48:02 +0000 (14:48 +0900)
To use dnsmasq, include dnsmasq.conf file.
- run background with pid-file
- user/group don't assigne to nothing for ramdisk-recovery

Change-Id: I71e517e1f4cb74b5493a50668823f3d43fa3c982
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
data/dnsmasq.conf [new file with mode: 0755]
packaging/initrd-flash.spec
scripts/41-flash.list

diff --git a/data/dnsmasq.conf b/data/dnsmasq.conf
new file mode 100755 (executable)
index 0000000..a8d5a27
--- /dev/null
@@ -0,0 +1,7 @@
+dhcp-range=192.168.43.3,192.168.43.254,255.255.255.0
+enable-dbus
+group=""
+user=""
+dhcp-option=tag:blue,option:router,192.168.129.3
+dhcp-option=6,0.0.0.0
+pid-file=/lib/firmware/brcm/dnsmasq.pid
index b791e48..9bfc980 100644 (file)
@@ -56,6 +56,7 @@ mkdir -p %{buildroot}%{_libdir}/firmware/brcm
 cp ./data/brcmfmac* %{buildroot}%{_libdir}/firmware/brcm
 cp ./data/LICENCE.broadcom_bcm43xx %{buildroot}%{_libdir}/firmware/brcm
 cp ./data/hostapd.conf %{buildroot}%{_libdir}/firmware/brcm
+cp ./data/dnsmasq.conf %{buildroot}%{_libdir}/firmware/brcm
 
 %post
 
@@ -73,6 +74,7 @@ mv %{_datadir}/partition_rpi3.info %{_datadir}/partition.info
 %attr(700,root,root) %{_libdir}/firmware/brcm/brcmfmac*
 %attr(700,root,root) %{_libdir}/firmware/brcm/LICENCE.broadcom_bcm43xx
 %attr(700,root,root) %{_libdir}/firmware/brcm/hostapd.conf
+%attr(700,root,root) %{_libdir}/firmware/brcm/dnsmasq.conf
 
 %files -n fm-data-rpi3
 %attr(700,root,root) %{_datadir}/partition_rpi3.info
index 5aa0eda..3f165d1 100755 (executable)
@@ -35,4 +35,5 @@ VERBATIMS="
 /usr/lib/firmware/brcm/brcmfmac43455-sdio.txt
 /usr/lib/firmware/brcm/LICENCE.broadcom_bcm43xx
 /usr/lib/firmware/brcm/hostapd.conf
+/usr/lib/firmware/brcm/dnsmasq.conf
 "