| Summary: | Update initscript: use separate file for options | ||
|---|---|---|---|
| Product: | Sisyphus | Reporter: | Sviatoslav Sviridov <svd> |
| Component: | slmodemd | Assignee: | 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 | ||
Reassign to nobody@. Пакета в сизифе давно (после M40) нет. |
Было бы неплохо обновить /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" ============== В частности, мне понадобилось указать другой девайс...