compat: create the udev directories for compat_firmware file
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 24 May 2010 16:52:22 +0000 (09:52 -0700)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 24 May 2010 16:52:22 +0000 (09:52 -0700)
In case the directories are non existant create them.

Reported-by: Jaroslav Fojtik <jafojtik@seznam.cz>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
scripts/compat_firmware_install

index d92961a..33e4fde 100755 (executable)
@@ -8,10 +8,12 @@ fi
 
 case $LSB_RED_ID in
 "Ubuntu")
+       mkdir -p /lib/udev/ /lib/udev/rules.d/
        cp udev/ubuntu/compat_firmware.sh /lib/udev/
        cp udev/ubuntu/50-compat_firmware.rules /lib/udev/rules.d/
         ;;
 *)
+       mkdir -p /lib/udev/ /lib/udev/rules.d/
        cp udev/compat_firmware.sh /lib/udev/
        cp udev/50-compat_firmware.rules /lib/udev/rules.d/
         ;;