Revision 25630,
575 bytes
checked in by jdreed, 12 years ago
(diff) |
In reactivate:
* Implement a blacklist for services that should never start inside the
chroot
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[25401] | 1 | #!/bin/sh |
---|
| 2 | |
---|
| 3 | if hash schroot >/dev/null 2>&1; then |
---|
| 4 | session=$(schroot -l --all-sessions) |
---|
| 5 | fi |
---|
| 6 | |
---|
[25575] | 7 | HELPER=/lib/dbus-1.0/dbus-daemon-launch-helper |
---|
| 8 | [ -x "$HELPER" ] || HELPER="/usr${HELPER}" |
---|
| 9 | [ -x "$HELPER" ] || logger -t "reactivate" "Can't execute $HELPER" |
---|
| 10 | |
---|
[25630] | 11 | BLACKLIST=/usr/share/debathena-reactivate/dbus-daemon-launch-helper-blacklist |
---|
| 12 | |
---|
[25609] | 13 | if [ -n "$session" ] && [ "$(echo "$session" | wc -l)" -eq 1 ] && \ |
---|
[25630] | 14 | ! [ -e /var/run/debathena-inhibit-dbus-helper ] && \ |
---|
| 15 | ! grep -Fxq "$1" "$BLACKLIST"; then |
---|
[25575] | 16 | exec schroot -r -c "$session" "$HELPER" "$@" |
---|
[25401] | 17 | else |
---|
[25575] | 18 | exec "$HELPER" "$@" |
---|
[25401] | 19 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.