X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=nodeinfo.sh;h=3ec3862fc7da60881e5a3f29e36ddb27b2f0e79f;hb=4945f9f0026cd0861aa8d8d2c55f7afd12a8849f;hp=8c3e370256daecc5ff21a62a545c0666cac2c3b5;hpb=7584988f4eef212145d0f1127a80cd7337f8d843;p=fba.git diff --git a/nodeinfo.sh b/nodeinfo.sh index 8c3e370..3ec3862 100755 --- a/nodeinfo.sh +++ b/nodeinfo.sh @@ -6,7 +6,7 @@ SOFTWARE_LIST="" if [ "$1" = "--help" ] then - echo "Usage: $0 [file|--software|--nodeinfo|--generator|--timeout]" + echo "Usage: $0 [file|--software|--nodeinfo|--generator|--timeout|--same]" exit 255 elif [ -n "$1" -a -f "$1" ] then @@ -28,6 +28,10 @@ elif [ "$1" = "--generator" ] then DOMAINS=$(sqlite3 blocks.db "SELECT domain FROM instances WHERE detection_mode='GENERATOR' ORDER BY last_updated ASC;") MODE="generator" +elif [ "$1" = "--same" ] +then + DOMAINS=$(sqlite3 blocks.db "SELECT domain FROM instances WHERE domain=software ORDER BY last_updated ASC;") + MODE="same" else DOMAINS=$(sqlite3 blocks.db "SELECT domain FROM instances WHERE software IS NULL AND nodeinfo_url IS NOT NULL ORDER BY last_updated ASC;") fi