Ubuntu 6.10
From ZoneMinder
Outline
Step 1: Follow the Ubuntu 6.06 Alternate instructions.
Step 2: Fix the POSIX problem in Edgy Eft.
Explanation
Usage of the Ubuntu 6.06 Ubuntu 6.06 instructions requires one extra step on 6.10. Edgy Eft marks the first time that Ubuntu points sh to dash, not bash. So, the auto-start script, when run, outputs the following error: Syntax error: Bad fd number
root@doorbell:/etc/init.d# bash /etc/init.d/zm restart Stopping ZoneMinder: sh: Syntax error: Bad fd number success Starting ZoneMinder: sh: Syntax error: Bad fd number success
Procedure
There exist instructions on how to fix this problem; most notably replacing #!/bin/sh with #!/bin/bash at the top of the script, but this did not work for me.
Here are the steps that worked for me:
dpkg-reconfigure dash
This will bring up an interactive dialog that allows you to undo this bash -> dash change. Just select "no" at the prompt. The changes will be reflected in the console as follows:
root@doorbell:/etc/init.d# dpkg-reconfigure dash Removing `diversion of /bin/sh to /bin/sh.distrib by dash' Removing `diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash'
Now, your zm output should no longer contain the "Bad fd number" error messages.
root@doorbell:/etc/init.d# /etc/init.d/zm restart Stopping ZoneMinder: success Starting ZoneMinder: success


