compat-3.7.h: Cleanup
[~tnikolova/compat/.git] / scripts / compat_firmware_install
1 #!/bin/sh
2
3 if [ -f /usr/bin/lsb_release ]; then
4         LSB_RED_ID=$(/usr/bin/lsb_release -i -s)
5 else
6         LSB_RED_ID="Unknown"
7 fi
8
9 case $LSB_RED_ID in
10 "Ubuntu")
11         mkdir -p /lib/udev/ /lib/udev/rules.d/
12         cp udev/ubuntu/compat_firmware.sh /lib/udev/
13         cp udev/ubuntu/50-compat_firmware.rules /lib/udev/rules.d/
14         ;;
15 *)
16         mkdir -p /lib/udev/ /lib/udev/rules.d/
17         cp udev/compat_firmware.sh /lib/udev/
18         cp udev/50-compat_firmware.rules /lib/udev/rules.d/
19         ;;
20 esac
21