livecd-rootfs/live-build/ubuntu-touch/hooks/45-add-adming-group-nm.chroot
Colin Watson 95246a6553 live-build/auto/config, live-build/ubuntu-touch: Copy a huge pile of
customisation by Ricardo Salveti from
lp:~phablet-team/touch-preview-images/ubuntu-build-phablet, which should
be close to enough for the architecture-independent parts of
ubuntu-touch builds.
2013-05-01 12:01:21 -07:00

7 lines
440 B
Bash
Executable File

#!/bin/bash
echo "Adding admin group policy to NM system service"
sed -i 's/<policy user="root">/<policy group="admin">\n\t\t\t\t<allow send_destination="org.freedesktop.NetworkManager"\/>\n\t\t\t\t<allow send_interface="org.freedesktop.NetworkManager"\/>\n\t\t\t\t<allow send_interface="org.freedesktop.NetworkManager.SecretAgent"\/>\n\t\t<\/policy>\n\t\t<policy user="root">/g' /etc/dbus-1/system.d/org.freedesktop.NetworkManager.conf