Name: net-config
Summary: TIZEN Network Configuration service
-Version: 1.1.84
+Version: 1.1.85
Release: 2
Group: System/Network
License: Apache-2.0
Requires(preun): systemd
Requires(postun): systemd
+%define upgrade_script_path /usr/share/upgrade/scripts
+
%description
TIZEN Network Configuration service
mkdir -p %{buildroot}%{_datadir}/license
cp LICENSE %{buildroot}%{_datadir}/license/net-config
+#OS Upgrade
+mkdir -p %{buildroot}%{upgrade_script_path}
+cp -f scripts/netconfig_upgrade.sh %{buildroot}%{upgrade_script_path}
+
%post
chsmack -a 'System::Shared' %{_sysconfdir}/resolv.conf
%endif
%if 0%{?model_build_feature_wlan_wearable} == 1
%attr(700,root,root) /usr/system/RestoreDir/softreset/network_softreset.sh
-
%endif
+%{upgrade_script_path}/netconfig_upgrade.sh
+
--- /dev/null
+#!/bin/sh
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+
+#-----------------------------------------------#
+# netconfig patch for upgrade (2.4 -> 3.0) #
+#-----------------------------------------------#
+
+rm -f /opt/dbspace/.wifi_offload.db
+rm -f /opt/dbspace/.wifi_offload.db-journal
+rm -f /opt/etc/dump.d/module.d/network_log_dump.sh
+rm -f /opt/var/lib/net-config/network_dump.sh
+rm -f /opt/var/lib/net-config/network_log_dump.sh
+
#include "netsupplicant.h"
#include "wifi-firmware.h"
#include "network-statistics.h"
-#if defined WLAN_CHECK_POWERSAVE
-#include "wifi-powersave.h"
-#endif
#define WLAN_DRIVER_SCRIPT "/usr/bin/wlan.sh"
#define WLAN_IFACE_NAME "wlan0"
if (current_driver == NETCONFIG_WIFI_OFF) {
return -EALREADY;
} else if (current_driver == alias) {
-#if defined WLAN_CHECK_POWERSAVE
- if (type == NETCONFIG_WIFI_STA && netconfig_wifi_is_powersave_mode() == TRUE) {
- netconfig_interface_down(WIFI_IFNAME);
- return -EALREADY;
- }
-#endif
#if defined WLAN_CONCURRENT_MODE
netconfig_vconf_get_bool(VCONFKEY_TELEPHONY_FLIGHT_MODE, &flight_mode);
if (current_driver > NETCONFIG_WIFI_OFF) {
if (current_driver == alias) {
-#if defined WLAN_CHECK_POWERSAVE
- if (type == NETCONFIG_WIFI_STA && netconfig_wifi_is_powersave_mode() == TRUE) {
- netconfig_interface_up(WIFI_IFNAME);
-
- return -EALREADY;
- }
-#endif
#if defined WLAN_CONCURRENT_MODE
if (type == NETCONFIG_WIFI_STA)