Browse Source

Sort OTA devices by hostname

fastled
Xose Pérez 7 years ago
parent
commit
7807af6115
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      code/ota_flash.sh
  2. +1
    -1
      code/ota_list.sh

+ 1
- 1
code/ota_flash.sh View File

@ -40,7 +40,7 @@ useAvahi() {
echo -n "" > $board_file echo -n "" > $board_file
echo -n "$counter" > $count_file echo -n "$counter" > $count_file
avahi-browse -t -r -p "_arduino._tcp" 2>/dev/null | grep ^= | while read line; do
avahi-browse -t -r -p "_arduino._tcp" 2>/dev/null | grep ^= | sort -t ';' -k 3 | while read line; do
(( counter++ )) (( counter++ ))
echo "$counter" > $count_file echo "$counter" > $count_file


+ 1
- 1
code/ota_list.sh View File

@ -25,7 +25,7 @@ useAvahi() {
counter=0 counter=0
avahi-browse -t -r -p "_arduino._tcp" 2>/dev/null | grep ^= | while read line; do
avahi-browse -t -r -p "_arduino._tcp" 2>/dev/null | grep ^= | sort -t ';' -k 3 | while read line; do
(( counter++ )) (( counter++ ))


Loading…
Cancel
Save