mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-03 19:30:41 -04:00
Pairing helper improvements
This commit is contained in:
parent
74a13990c1
commit
3d4405a87b
@ -36,6 +36,7 @@ fi
|
|||||||
echo "Please start the pairing process in Remote by selecting Add library"
|
echo "Please start the pairing process in Remote by selecting Add library"
|
||||||
read -p "Press ENTER when ready..." yn
|
read -p "Press ENTER when ready..." yn
|
||||||
echo -n "Looking in $logfile for Remote announcement..."
|
echo -n "Looking in $logfile for Remote announcement..."
|
||||||
|
sleep 5
|
||||||
|
|
||||||
remote=`grep "Discovered remote" $logfile | tail -1 | grep -Po "'.*?'"`
|
remote=`grep "Discovered remote" $logfile | tail -1 | grep -Po "'.*?'"`
|
||||||
remote="${remote%\'}"
|
remote="${remote%\'}"
|
||||||
@ -55,7 +56,7 @@ if [ -z "$pin" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Writing pair.remote to $library_path..."
|
echo "Writing pair.remote to $library_path..."
|
||||||
echo "$remote\n$pin" > "$library_path/pair.remote"
|
echo -e "$remote\n$pin" > "$library_path/pair.remote"
|
||||||
sleep 1
|
sleep 1
|
||||||
echo "Removing pair.remote from library again..."
|
echo "Removing pair.remote from library again..."
|
||||||
rm "$library_path/pair.remote"
|
rm "$library_path/pair.remote"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user