Skip to content

Commit

Permalink
Added Multi REader registration to buster-install-default.sh as extra…
Browse files Browse the repository at this point in the history
… option
  • Loading branch information
Markus Prochaska authored and Markus Prochaska committed Jul 2, 2020
1 parent 14f4df3 commit c9ea117
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions scripts/installscripts/buster-install-default.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1107,19 +1107,34 @@ finish_installation() {
[nN][oO]|[nN])
;;
*)
echo 'Please select an option to install RFID readers'
options=("Auto configure USB (e.g. Neuftech), RC522 or PN532 raders" "Manual configuration")
echo 'Please select the RFID reader you want to use'
options=("USB-Reader (e.g. Neuftech)" "RC522" "PN532" "Manual configuration" "Multiple RFID reader")
select opt in "${options[@]}"; do
case $opt in
"Auto configure USB (e.g. Neuftech), RC522 or PN532 raders")
"USB-Reader (e.g. Neuftech)")
cd "${jukebox_dir}"/scripts/ || exit
sudo python3 RegisterDevice.py.Multi
python3 RegisterDevice.py
sudo chown pi:www-data "${jukebox_dir}"/scripts/deviceName.txt
sudo chmod 644 "${jukebox_dir}"/scripts/deviceName.txt
break
;;
"RC522")
bash "${jukebox_dir}"/components/rfid-reader/RC522/setup_rc522.sh
break
;;
"PN532")
bash "${jukebox_dir}"/components/rfid-reader/PN532/setup_pn532.sh
break
;;
"Manual configuration")
echo "Please configure your reader manually."
break
;;
"Multiple RFID reader")
cd "${jukebox_dir}"/scripts/ || exit
sudo python3 RegisterDevice.py.Multi
break
;;
*)
echo "This is not a number"
;;
Expand Down

0 comments on commit c9ea117

Please sign in to comment.