Skip to content

Commit 89a867f

Browse files
authored
Merge 1e2dafe into 5d3ff46
2 parents 5d3ff46 + 1e2dafe commit 89a867f

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

scripts/upower/95-upower-hid.hwdb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,15 @@
55
# https://github.com/networkupstools/nut/
66
#
77
# To keep up to date, monitor upstream NUT
8-
# https://github.com/networkupstools/nut/commits/master/scripts/upower/95-upower-hid.hwdb
8+
# https://github.com/networkupstools/nut/commits/master/scripts/upower/95-upower-hid.hwdb
99
# or checkout the NUT repository and call 'tools/nut-usbinfo.pl'
10+
# One or more "match lines" below are used to set a "property" for a device;
11+
# for more syntax and system installation (and override) notes, see
12+
# https://www.freedesktop.org/software/systemd/man/hwdb.html
13+
# (or equivalent for the version of systemd used in your distribution)
14+
# Note that "During runtime, only the binary database is used" as compiled
15+
# from files like this by e.g. `systemctl restart systemd-hwdb-update.service`
16+
# (if you edit your copy locally or maintain a site-local override file in /etc).
1017

1118
# Hewlett Packard
1219
usb:v03F0p0001*

tools/nut-usbinfo.pl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,15 @@ sub gen_usb_files
141141
print $outUPower '# This file was automatically generated by NUT:'."\n";
142142
print $outUPower '# https://github.com/networkupstools/nut/'."\n#\n";
143143
print $outUPower '# To keep up to date, monitor upstream NUT'."\n";
144-
print $outUPower '# https://github.com/networkupstools/nut/commits/master/scripts/upower/95-upower-hid.hwdb'."\n";
144+
print $outUPower '# https://github.com/networkupstools/nut/commits/master/scripts/upower/95-upower-hid.hwdb'."\n";
145145
print $outUPower "# or checkout the NUT repository and call 'tools/nut-usbinfo.pl'\n";
146+
print $outUPower '# One or more "match lines" below are used to set a "property" for a device;'."\n";
147+
print $outUPower '# for more syntax and system installation (and override) notes, see'."\n";
148+
print $outUPower '# https://www.freedesktop.org/software/systemd/man/hwdb.html'."\n";
149+
print $outUPower '# (or equivalent for the version of systemd used in your distribution)'."\n";
150+
print $outUPower '# Note that "During runtime, only the binary database is used" as compiled'."\n";
151+
print $outUPower '# from files like this by e.g. `systemctl restart systemd-hwdb-update.service`'."\n";
152+
print $outUPower '# (if you edit your copy locally or maintain a site-local override file in /etc).'."\n";
146153

147154
# Device scanner header
148155
my $outDevScanner = do {local *OUT_DEV_SCANNER};

0 commit comments

Comments
 (0)