unet-cli: confirm password when creating new seed based key
authorFelix Fietkau <nbd@nbd.name>
Mon, 16 Dec 2024 12:42:04 +0000 (13:42 +0100)
committerFelix Fietkau <nbd@nbd.name>
Mon, 16 Dec 2024 12:42:04 +0000 (13:42 +0100)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
scripts/unet-cli

index 5efd57054c58eb38d7cc8053863c28be363923fc..bae0965772ac9a05132498c2b991878f9d9c016d 100755 (executable)
@@ -430,7 +430,7 @@ case 'set-config':
        }
 
        if (!net_data.config.id) {
-               net_data.config.id = trim(popen(`unet-tool -P ${key_arg(file, net_data)}`).read("all"));
+               net_data.config.id = trim(popen(`unet-tool -P -p ${key_arg(file, net_data)}`).read("all"));
                if (!net_data.config.id)
                        exit(1);
        }