%post
chmod 755 %{_sbindir}/wmesh.sh
-# For configuration files
-mkdir -p %TZ_SYS_VAR/lib/wmesh
-chown network_fw:network_fw %TZ_SYS_VAR/lib/wmesh
-
%files
%manifest wmeshd.manifest
%license LICENSE
"deny_mac_file=%s\n" \
"ieee80211n=1\n"
#define HOSTAPD_CONF_LEN 1024
-#define HOSTAPD_BIN "/usr/sbin/hostapd"
-#define HOSTAPD_DEBUG_FILE "/var/log/mesh_hostapd.log"
+#define HOSTAPD_BIN "/usr/bin/hostapd"
+#define HOSTAPD_DEBUG_FILE tzplatform_mkpath(TZ_SYS_GLOBALUSER_DATA, "/network/mesh_hostapd.log")
#define HOSTAPD_ENTROPY_FILE tzplatform_mkpath(TZ_SYS_VAR, "/lib/misc/hostapd.bin")
-#define HOSTAPD_MESH_CONF_FILE tzplatform_mkpath(TZ_SYS_VAR, "/lib/wmesh/mesh_hostapd.conf")
+#define HOSTAPD_MESH_CONF_FILE tzplatform_mkpath(TZ_SYS_GLOBALUSER_DATA, "/network/mesh_hostapd.conf")
#define HOSTAPD_CTRL_INTF_DIR tzplatform_mkpath(TZ_SYS_RUN, "/hostapd")
#define HOSTAPD_PID_FILE tzplatform_mkpath(TZ_SYS_RUN, "/.mesh_hostapd.pid")
#define HOSTAPD_ALLOWED_LIST tzplatform_mkpath(TZ_SYS_VAR, "/lib/hostapd/hostapd.accept")