File tree Expand file tree Collapse file tree 5 files changed +27
-3
lines changed
documentation/developers/rfid Expand file tree Collapse file tree 5 files changed +27
-3
lines changed Original file line number Diff line number Diff line change 88 * [ RDM6300 Reader] ( rdm6300.md )
99 * [ MFRC522 SPI Reader] ( mfrc522_spi.md )
1010 * [ PN532 I2C Reader] ( pn532_i2c.md )
11+ * [ Generic Readers without HID (NFCpy)] ( generic_nfcpy.md )
1112 * [ Mock Reader] ( mock_reader.md )
1213 * [ Template Reader] ( template_reader.md )
13-
14+
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ This module is based on the user space NFC reader library [nfcpy](https://nfcpy.
44The link above also contains a list of [ supported devices] ( https://nfcpy.readthedocs.io/en/latest/overview.html#supported-devices ) .
55
66The goal of this module is to handle USB NFC devices, that don't have a HID-keyboard
7- driver, and thus cannot be used with the [ genericusb] ( genericusb.md ) module.
7+ driver, and thus cannot be used with the [ genericusb] ( genericusb.md ) module. Also some serial devices are supported.
88
99> [ !NOTE]
1010> Since nfcpy is a user-space library, it is required to supress the kernel from loading its driver.
Original file line number Diff line number Diff line change @@ -299,6 +299,21 @@ verify_file_contains_string() {
299299 log " CHECK"
300300}
301301
302+ verify_file_does_not_contain_string () {
303+ local string=" $1 "
304+ local file=" $2 "
305+ log " Verify '${string} ' not found in '${file} '"
306+
307+ if [[ -z " ${string} " || -z " ${file} " ]]; then
308+ exit_on_error " ERROR: at least one parameter value is missing!"
309+ fi
310+
311+ if grep -iq " ${string} " " ${file} " ; then
312+ exit_on_error " ERROR: '${string} ' found in '${file} '"
313+ fi
314+ log " CHECK"
315+ }
316+
302317verify_file_contains_string_once () {
303318 local string=" $1 "
304319 local file=" $2 "
Original file line number Diff line number Diff line change @@ -117,6 +117,10 @@ _jukebox_webapp_register_as_system_service_with_nginx() {
117117 sudo cp -f " ${INSTALLATION_PATH} /resources/default-settings/nginx.default" " ${WEBAPP_NGINX_SITE_DEFAULT_CONF} "
118118 sudo sed -i " s|%%INSTALLATION_PATH%%|${INSTALLATION_PATH} |g" " ${WEBAPP_NGINX_SITE_DEFAULT_CONF} "
119119
120+ if [ " $DISABLE_IPv6 " = true ] ; then
121+ sudo sed -i ' /listen \[::\]:80/d' " ${WEBAPP_NGINX_SITE_DEFAULT_CONF} "
122+ fi
123+
120124 # make sure nginx can access the home directory of the user
121125 sudo chmod o+x " ${HOME_PATH} "
122126
@@ -147,6 +151,10 @@ _jukebox_webapp_check() {
147151 verify_apt_packages nginx
148152 verify_files_exists " ${WEBAPP_NGINX_SITE_DEFAULT_CONF} "
149153
154+ if [ " $DISABLE_IPv6 " = true ] ; then
155+ verify_file_does_not_contain_string " listen [::]:80" " ${WEBAPP_NGINX_SITE_DEFAULT_CONF} "
156+ fi
157+
150158 verify_service_enablement nginx.service enabled
151159}
152160
Original file line number Diff line number Diff line change 11
22VERSION_MAJOR = 3
33VERSION_MINOR = 5
4- VERSION_PATCH = 0
4+ VERSION_PATCH = 1
55VERSION_EXTRA = ""
66
77# build a version string in compliance with the SemVer specification
You can’t perform that action at this time.
0 commit comments