Bug 6066

Summary: Update initscript: use separate file for options
Product: Sisyphus Reporter: Sviatoslav Sviridov <svd>
Component: slmodemdAssignee: Nobody's working on this, feel free to take it <nobody>
Status: CLOSED WONTFIX QA Contact: qa-sisyphus
Severity: enhancement    
Priority: P2    
Version: unstable   
Hardware: all   
OS: Linux   

Description Sviatoslav Sviridov 2005-02-08 18:12:01 MSK
Было бы неплохо обновить /etc/rc.d/init.d/slmodemd на предмет использования
файла конфигурации.

Например, вот так:

--- slmodemd~   2005-02-08 16:55:29 +0200
+++ slmodemd    2005-02-08 17:01:54 +0200
@@ -15,13 +15,17 @@
 # Source function library.
 . /etc/init.d/functions
 
+SourceIfNotEmpty /etc/sysconfig/slmodem
+# Set the default device
+DEVICE=${DEVICE-/dev/slamr0}
+
 PIDFILE=/var/run/slmodemd.pid
 LOCKFILE=/var/lock/subsys/slmodemd
 RETVAL=0
 
 start()
 {
-       action "Starting slmodem daemon: " start-stop-daemon --quiet --start -b
-m --pidfile $PIDFILE --exec /usr/sbin/slmodemd -- --country=RUSSIA
+       action "Starting slmodem daemon: " start-stop-daemon --quiet --start -b
-m --pidfile $PIDFILE --exec /usr/sbin/slmodemd -- $OPTIONS "$DEVICE"
        RETVAL=$?
        return $RETVAL
 }

===============
$ cat /etc/sysconfig/slmodem 
# Set device name (optional). Default value is /dev/slamr0
#DEVICE=/dev/dsp1

# Set additional slmodemd options 
OPTIONS="--country=RUSSIA"

==============

В частности, мне понадобилось указать другой девайс...
Comment 1 Slava Semushin 2008-03-11 15:10:27 MSK
Reassign to nobody@.
Comment 2 Michael Shigorin 2010-01-06 20:53:29 MSK
Пакета в сизифе давно (после M40) нет.