Bug#499932: /etc/init.d/acpid: 60: Syntax error: Missing '))

2008-09-24 Thread Jerome Warnier
This bug occurs because the script is not safe to be run with /bin/sh
being actually dash.
This bug should be in fact renamed to: "Initscript not compatible with
dash" or something similar.
To fix this on your computer, change the shebang line to:
#! /bin/bash -e

Then, upgrade to the new version and when dpkg asks to overwrite the
script with maintainer version, just accept.

Hope it helps.




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#499932: /etc/init.d/acpid: 60: Syntax error: Missing '))

2008-09-23 Thread Krzysztof Burghardt
Package: acpid
Version: 1.0.6-11
Severity: important

During upgrade I goth this message:

E: Sub-process /usr/bin/dpkg returned an error code (1)
W czasie instalacji wystąpiły problemy. Próba naprawy:
Konfigurowanie acpid (1.0.6-11) ...
/etc/init.d/acpid: 60: Syntax error: Missing '))'
invoke-rc.d: initscript acpid, action "start" failed.
dpkg: błąd przetwarzania acpid (--configure):
podproces post-installation script zwrócił kod błędu 2
Wystąpiły błądy podczas przetwarzania:
acpid

I'm no longer able to start or stop acpid:

root ~ # invoke-rc.d --force acpid stop
/etc/init.d/acpid: 60: Syntax error: Missing '))'
invoke-rc.d: initscript acpid, action "stop" failed.
root ~ # invoke-rc.d --force acpid start
/etc/init.d/acpid: 60: Syntax error: Missing '))'
invoke-rc.d: initscript acpid, action "start" failed.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (900, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages acpid depends on:
ii  libc6 2.7-13 GNU C Library: Shared libraries
ii  lsb-base  3.2-20 Linux Standard Base 3.2 init scrip
ii  module-init-tools 3.4-1  tools for managing Linux kernel mo

acpid recommends no packages.

acpid suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]