]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
bluetooth: update udev rules.
authorArne Fitzenreiter <arne_f@ipfire.org>
Sun, 29 Dec 2013 19:14:01 +0000 (20:14 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 29 Dec 2013 19:14:01 +0000 (20:14 +0100)
lfs/bluetooth

index 33e126cfaaea42a272f2d4b077d5a1cc6ca12ef4..dc5eec7ea567ca15c60000e6187cebcd39c42cfa 100644 (file)
@@ -109,6 +109,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        cd $(DIR_SRC)/bluez-hcidump-1.42 && make $(MAKETUNING)
        cd $(DIR_SRC)/bluez-hcidump-1.42 && make install
        mv -f /etc/udev/bluetooth.rules /lib/udev/rules.d/24-bluetooth.rules
        cd $(DIR_SRC)/bluez-hcidump-1.42 && make $(MAKETUNING)
        cd $(DIR_SRC)/bluez-hcidump-1.42 && make install
        mv -f /etc/udev/bluetooth.rules /lib/udev/rules.d/24-bluetooth.rules
+       # Patch udev rules for new udev version
+       sed -i -e "s/SYSFS{/ATTRS{/g" /lib/udev/rules.d/24-bluetooth.rules
+       sed -i -e "s/BUS==/SUBSYSTEMS==/g" /lib/udev/rules.d/24-bluetooth.rules
        # Change bluetooth peername to Hostname-devicenumber
        sed -i -e 's|name "BlueZ (%d)";|name "%h-%d";|g' /etc/bluetooth/hcid.conf
        # Create empty config files
        # Change bluetooth peername to Hostname-devicenumber
        sed -i -e 's|name "BlueZ (%d)";|name "%h-%d";|g' /etc/bluetooth/hcid.conf
        # Create empty config files