-#TV profile uses default XU3 device which creates wlan interface only
-%if "%{profile}" == "tv"
-# Comment it for temp puprose. Tizen TV Board supports p2p0 interface
-#chmod 644 /usr/etc/wifi-direct/dhcpd.wlan.conf
-chmod 644 /usr/etc/wifi-direct/dhcpd.p2p.conf
-%else
-chmod 644 /usr/etc/wifi-direct/dhcpd.p2p.conf
-%endif
-chmod 755 /usr/bin/dhcpd-notify.sh
-chmod 755 /usr/etc/wifi-direct/udhcp_script.non-autoip
-chmod 755 /usr/bin/wifi-direct-server.sh
-chmod 755 /usr/bin/wifi-direct-dhcp.sh
-chmod 755 /usr/sbin/p2p_supp.sh
-
-%if "%{profile}" == "tv"
- if [ ! -d /opt/var/lib/misc ]; then
- mkdir -p /opt/var/lib/misc
- fi
-
- touch /opt/var/lib/misc/dhcpd.leases
- chmod 666 /opt/var/lib/misc/dhcpd.leases
-%else
- if [ ! -d /var/lib/misc ]; then
- mkdir -p /var/lib/misc
- fi
+chmod 644 %{TZ_SYS_RO_ETC}/wifi-direct/dhcpd.conf
+chmod 755 %{_bindir}/dhcpd-notify.sh
+chmod 755 %{TZ_SYS_RO_ETC}/wifi-direct/udhcp_script.non-autoip
+chmod 755 %{_bindir}/wifi-direct-server.sh
+chmod 755 %{_bindir}/wifi-direct-dhcp.sh
+chmod 755 %{_sbindir}/p2p_supp.sh