Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 132303 Details for
Bug 194365
app-misc/g15daemon-1.2.7 init script contains bashisms
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
g15daemon-init.patch
g15daemon-init.patch (text/plain), 1.34 KB, created by
Peter Alfredsen (RETIRED)
on 2007-10-01 11:35:27 UTC
(
hide
)
Description:
g15daemon-init.patch
Filename:
MIME Type:
Creator:
Peter Alfredsen (RETIRED)
Created:
2007-10-01 11:35:27 UTC
Size:
1.34 KB
patch
obsolete
>--- /usr/portage/app-misc/g15daemon/files/g15daemon-1.2.7.initd 2007-02-18 20:38:16.000000000 +0100 >+++ /etc/init.d/g15daemon 2007-10-01 13:32:02.000000000 +0200 >@@ -13,26 +13,28 @@ > > start() { > ebegin "Starting g15daemon" > > # Does the input device already exist? >- if [[ -e /proc/modules && ! -e /dev/input/uinput ]] ; then >+ if [ -e /proc/modules -a ! -e /dev/input/uinput ]; then > # We can load modules, but uinput device does not exist > einfo "Loading uinput module" >- /sbin/modprobe uinput &> /dev/null >+ /sbin/modprobe uinput > /dev/null 2> /dev/null > fi > > local SWITCHKEY="" >- [[ ${CLIENT_SWITCH_L1} = "yes" ]] && SWITCHKEY="--switch" >+ [ "${CLIENT_SWITCH_L1}" = "yes" ] && SWITCHKEY="--switch" > start-stop-daemon --start --background --pidfile /var/run/g15daemon.pid \ > --exec /usr/sbin/g15daemon -- ${SWITCHKEY} > eend $? "Failed to start g15daemon." > } > > stop() { > ebegin "Stopping g15daemon" > local KILLOPT="-k" >- [[ ${BACKLIGHT_OFF} = "yes" ]] && KILLOPT="-K" >- /usr/sbin/g15daemon ${KILLOPT} 2&> /dev/null \ >- || start-stop-daemon --stop --quiet --pidfile /var/run/g15daemon.pid >+ if [ $BACKLIGHT_OFF = "yes" ]; then >+ KILLOPT="-K" >+ fi >+ /usr/sbin/g15daemon ${KILLOPT} >/dev/null 2> /dev/null&&wait `cat /var/run/g15daemon.pid` \ >+ || start-stop-daemon --signal SIGKILL --stop --quiet --pidfile /var/run/g15daemon.pid > eend $? > }
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 194365
:
132302
| 132303