Commit cea1f1fd authored by Slava Monich's avatar Slava Monich

[connman] Remove directories with post-install script. Fixes JB#45412

Bug JB#45412 was released in 3.0.2 so now we have some users with a large
number (thousands!) of useless directories in /var/lib/connman
parent 12a4e009
......@@ -177,6 +177,12 @@ cp %{etc_resolv_conf} %{run_resolv_conf} || :
fi
rm -f %{etc_resolv_conf} || :
ln -s %{run_resolv_conf} %{etc_resolv_conf} || :
# Remove directories created by mistake in release 3.0.2
for d in $(find /var/lib/connman -type d -name "wifi*") ; do
if [ ! -f $d/settings ] ; then
rm -fr $d
fi
done
systemctl daemon-reload || :
# Do not restart connman here or network breaks.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment