]> git.mxchange.org Git - fba.git/blobdiff - nodeinfo.sh
Continued:
[fba.git] / nodeinfo.sh
index 8c3e370256daecc5ff21a62a545c0666cac2c3b5..3ec3862fc7da60881e5a3f29e36ddb27b2f0e79f 100755 (executable)
@@ -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