dbus.postinst 301 B

123456789101112
  1. #!/bin/sh
  2. . $IPKG_INSTROOT/etc/functions.sh
  3. gid=$(get_next_gid)
  4. add_group messagebus $gid
  5. add_user messagebus $(get_next_uid) $gid /var/run/dbus
  6. add_rcconf dbus NO
  7. echo Generating UUID
  8. if [ -z $IPKG_INSTROOT ];then
  9. mkdir /lib/dbus /var/lib
  10. ln -sf /lib/dbus /var/lib/dbus
  11. dbus-uuidgen --ensure
  12. fi