Name: net-config
Summary: TIZEN Network Configuration service
-Version: 1.1.94
+Version: 1.1.96
Release: 2
Group: System/Network
License: Apache-2.0
cp resources/usr/lib/systemd/system/net-config_tv.service %{buildroot}%{_libdir}/systemd/system/net-config.service
mkdir -p %{buildroot}%{_libdir}/udev/rules.d/
cp resources/usr/lib/udev/rules.d/99-wifiusb-dev.rules %{buildroot}%{_libdir}/udev/rules.d/99-wifiusb-dev.rules
+%if "%{?_lib}" == "lib64"
+cp resources/usr/lib/systemd/system/net-config_tv.service %{buildroot}%{_unitdir}/net-config.service
+%endif
%else
cp resources/usr/lib/systemd/system/net-config.service %{buildroot}%{_libdir}/systemd/system/net-config.service
%if "%{?_lib}" == "lib64"
#define DBUS_SERVICE_DBUS "org.freedesktop.DBus"
#define DBUS_INTERFACE_DBUS "org.freedesktop.DBus"
#define MAC_INFO_FILEPATH tzplatform_mkpath(TZ_SYS_ETC, "/.mac.info")
+#define MAC_ADDRESS_FILEPATH "/sys/class/net/wlan0/address"
#define MAC_ADDRESS_MAX_LEN 18
static gboolean netconfig_device_picker_test = FALSE;
file = fopen(MAC_INFO_FILEPATH, "r");
if (file == NULL) {
ERR("Fail to open %s", MAC_INFO_FILEPATH);
- return;
+ file = fopen(MAC_ADDRESS_FILEPATH, "r");
+ if (file == NULL) {
+ ERR("Fail to open %s", MAC_ADDRESS_FILEPATH);
+ return;
+ }
}
if (fgets(mac_str, sizeof(mac_str), file) == NULL) {
ERR("Fail to read mac address");