livecd-rootfs/live-build/ubuntu-touch/hooks/45-add-adming-group-nm.chroot
Colin Watson f00349b766 Import patches-unapplied version 2.125 to ubuntu/saucy-proposed
Imported using git-ubuntu import.

Changelog parent: 65b7f7a10a9bd05c60185f5c282af1a4c4efff57

New changelog entries:
  * live-build/auto/config: Add basic ubuntu-touch enablement (based on
    patch from Oliver Grawert, for which thanks).
  * 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 19:33:32 +00: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