Package: laptop-net
Version: 2.26-1
Tags: patch


Currently laptop-net fails to work properly if the directory /var/run/laptop-net (which is created upon package installation) does not exist when laptop-net is started. On my system, /var/run is a tmpfs filesystem, so is not preserved across reboots, so laptop-net doesn't work.

Many other init scripts "mkdir -p" their /var/run subdirectories upon startup. I suggest that laptop-net does the same.

A trivial patch is below.

Cheers,

Seb

--- /etc/init.d/laptop-net.orig 2004-08-13 19:13:12.000000000 +0100
+++ /etc/init.d/laptop-net      2006-05-25 16:42:17.000000000 +0100
@@ -69,6 +69,7 @@
 case "${1}" in
     ("start")
        [ $# -eq 1 ] || usage
+       mkdir -p ${STATE_DIR}
        clean_state
        start_ifd
        ;;






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

Reply via email to