Fix nut udev rules.
authorArne Fitzenreiter <arne_f@ipfire.org>
Sat, 1 May 2010 15:07:05 +0000 (17:07 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sat, 1 May 2010 15:07:05 +0000 (17:07 +0200)
lfs/nut

diff --git a/lfs/nut b/lfs/nut
index c8363fd..b5a5eda 100644 (file)
--- a/lfs/nut
+++ b/lfs/nut
@@ -82,6 +82,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
                        --with-wrap=no --with-udev-dir=/etc/udev
        cd $(DIR_APP) && make $(MAKETUNING)
        cd $(DIR_APP) && make install
+       sed -i -e "s|ATTR{|SYSFS{|g" /etc/udev/rules.d/52-nut-usbups.rules
        -mkdir -p /var/state/ups
        install -v -m 644 $(DIR_SRC)/config/backup/includes/nut \
                         /var/ipfire/backup/addons/includes/nut