On 21/03/11 23:07, Stephen Powell wrote: > I didn't hear back from you; so I assume that my last post contained > the information you were looking for. If not, please let me know. > > In the meantime, is there any change I can make to a script file or > a udev rule that will solve the problem on my end between now and when > an official fix is available? > Sorry for the delay.
I've found a prettier&&easier way to solve this. I've fixed and tested working. Changes are on the building queue, you'll have to wait a few hours for Unstable/Sid to sync-up, but as I presume you're not running it, you might want to try replacing both etc/defaults/martian-modem and etc/init.d/martian-modem with the files attached. Cheers, Dererk -- BOFH excuse #153: Big to little endian conversion error
# Defaults for martian-modem initscript # sourced by /etc/init.d/martian-modem # installed at /etc/default/martian-modem by the maintainer scripts # # This is a POSIX shell fragment # # Additional options that are passed to the Daemon # ### # # Device that will martian-modem daemon create to act as modem device. # Default is /dev/ttySM0 # #DEVICE=/dev/ttySM0 # # User and Group that will have access to the modem device. # Do not confuse with daemon user/group (this daemon needs to be run as root) USER=nobody GROUP=dialout # Pseudo device permissions mode. # Do leave this as it is except you have changed GROUP parameter below, # otherwise you'll not be able to dial out under a non-root user. MODE=0660 # LOGGING NOTE: # If you don't choose to USE_SYSLOG, it would log automatically # into it's own logfile under $LOGFILE. # Default and recommended choise is to log using syslog facilities. # USE_SYSLOG=Y LOGFILE=/var/log/martian-modem.log # Default=1 (1-5) DEBUG_LEVEL=1
#! /bin/bash # # This initscript was created by Dererk <der...@debian.org> for martian-modem # # Start/stop the martian-modem daemon ### BEGIN INIT INFO # Provides: martian-modem # Required-Start: $syslog $remote_fs $time # Required-Stop: $syslog $remote_fs $time # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Userspace martian-modem session manager # Description: This daemon consists in the userspace part that controlles # the martian-modem sessions status. ### END INIT INFO PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/sbin/martian_modem NAME=martian-modem DESC=martian-modem test -x $DAEMON || exit 0 . /lib/lsb/init-functions # Include martian-modem defaults if available if [ -f /etc/default/martian-modem ] ; then . /etc/default/martian-modem USE_LOG="--syslog" if [ $USE_SYSLOG = "N" ]; then USE_LOG="--log $LOGFILE" fi DAEMON_OPTS="$USE_LOG --daemon --user=$USER --group=$GROUP --mode=$MODE --debug=$DEBUG_LEVEL $DEVICE" else echo "ERROR: martian-modem configuration file MISSING!" exit 1 fi case "$1" in start) log_begin_msg "Starting $NAME daemon..." pid=`pidof $NAME` if [ -n "$pid" ] ; then log_begin_msg "Already running." log_end_msg 0 exit 0 fi if [ ! -d "/var/run/$NAME" ]; then mkdir -p /var/run/$NAME chown $USER:root /var/run/$NAME fi start-stop-daemon --start --oknodo --pidfile /var/run/$NAME/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS if ! pidof $DAEMON > /var/run/$NAME/$NAME.pid; then log_begin_msg "Oops, something went wront. CHECK SYSLOG!" exit 1 fi log_end_msg $? ;; stop) log_begin_msg "Stopping $NAME daemon..." start-stop-daemon --stop --oknodo --pidfile /var/run/$NAME/$NAME.pid --exec $DAEMON log_end_msg $? rm /var/run/$NAME/$NAME.pid >/dev/null 2>&1 ;; force-reload) $0 restart ;; restart) $0 stop $0 start ;; status) if start-stop-daemon --start --test --exec $DAEMON -- $DAEMON_OPTS >/dev/null 2>&1; then echo "$NAME is STOPPED!" && exit 1 else echo "$NAME is RUNNING using process id `cat /var/run/$NAME/$NAME.pid`." && exit 0 fi ;; *) log_success_msg "Usage: /etc/init.d/$NAME {start|stop|status|force-reload|restart}" exit 1 ;; esac exit 0
signature.asc
Description: OpenPGP digital signature