FreeBSD Bugzilla – Attachment 127707 Details for
Bug 171568
[patch] sysutils/hal: recreate hal direcories
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.44 KB, created by
nkoch
on 2012-09-12 10:00:10 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
nkoch
Created:
2012-09-12 10:00:10 UTC
Size:
1.44 KB
patch
obsolete
>--- /usr/local/etc/rc.d/hald 2012-08-24 11:44:57.000000000 +0200 >+++ hald 2012-09-06 17:25:10.000000000 +0200 >@@ -41,6 +41,43 @@ > return 0 > } > >+init_policykit() >+{ >+ local USER=polkit >+ local GROUP=${USER} >+ local PREFIX=/usr/local >+ >+ /usr/bin/install -d -o root -m 0770 -g ${GROUP} /var/run/PolicyKit >+ /usr/bin/install -d -o root -m 0770 -g ${GROUP} /var/lib/PolicyKit >+ /usr/bin/install -d -o ${USER} -m 0755 -g wheel /var/lib/PolicyKit-public >+ /bin/mkdir -p /var/lib/misc >+ /usr/bin/touch -f /var/lib/misc/PolicyKit.reload >+ /usr/sbin/chown ${USER}:${GROUP} /var/lib/misc/PolicyKit.reload >+ /bin/chmod 0664 /var/lib/misc/PolicyKit.reload >+} >+ >+init_polkit() >+{ >+ mkdir -p /var/lib/polkit-1/localauthority >+ for i in 10-vendor.d 20-org.d 30-site.d 50-local.d 90-mandatory.d >+ do >+ mkdir -p /var/lib/polkit-1/localauthority/${i} >+ done >+ chmod 0700 /var/lib/polkit-1 >+} >+ >+init_hal() >+{ >+ local USER=haldaemon >+ local GROUP=${USER} >+ >+ /usr/bin/install -d -o ${USER} -g ${GROUP} /var/run/hald >+ /usr/bin/install -d -o ${USER} -g ${GROUP} /var/cache/hald >+ /usr/bin/install -d -o ${USER} -g ${GROUP} /var/lib/hal >+ /usr/local/bin/polkit-auth --user ${USER} --grant \ >+ org.freedesktop.policykit.read >+} >+ > hald_precmd() > { > if ! checkyesno dbus_enable >@@ -48,6 +85,10 @@ > local_force_depend dbus || return 1 > fi > >+ init_policykit >+ init_polkit >+ init_hal >+ > chmod 0755 /var/cache > > mkdir -p $(dirname $pidfile)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 171568
: 127707