polkit.postinst 238 B

1234567
  1. #!/bin/sh
  2. . $IPKG_INSTROOT/etc/functions.sh
  3. if [ -z $IPKG_INSTROOT ];then chmod u+s /usr/lib/polkit-1/polkit-agent-helper-1;fi
  4. gid=$(get_next_gid)
  5. add_group polkitd $gid
  6. add_user polkitd $(get_next_uid) $gid /var/run
  7. add_rcconf polkit NO