compat: create the udev directories for compat_firmware file
[~emulex/for-vlad/old/compat.git] / 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/
         ;;