networkmanager: remove /var/run from package

The /var/run/NetworkManager directory is created by the daemon on
startup if it doesn't exist. The /var/run directory is already
created by base-files.

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Jonathan Liu
2013-07-06 11:44:17 +00:00
committed by Martin Jansa
parent b9e9d4d144
commit 29c9fc4069
@@ -58,6 +58,9 @@ do_install_append () {
# Install an empty VPN folder as nm-connection-editor will happily segfault without it :o.
# With or without VPN support built in ;).
install -d ${D}${sysconfdir}/NetworkManager/VPN
rm -rf "${D}${localstatedir}/run"
rmdir --ignore-fail-on-non-empty "${D}${localstatedir}"
}
PACKAGES =+ "libnmutil libnmglib libnmglib-vpn ${PN}-tests ${PN}-bash-completion"