git.99rst.org
/
openwrt-packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
0d2dac8
)
tang: silence errors on first installation
author
Nikos Mavrogiannopoulos
<redacted>
Sat, 16 Dec 2023 14:46:29 +0000
(15:46 +0100)
committer
Nikos Mavrogiannopoulos
<redacted>
Sat, 16 Dec 2023 14:46:29 +0000
(15:46 +0100)
Signed-off-by: Nikos Mavrogiannopoulos <redacted>
utils/tang/files/tang.init
patch
|
blob
|
history
diff --git
a/utils/tang/files/tang.init
b/utils/tang/files/tang.init
index efcd3f2ccf783492126032b3004eff202d5c1485..7843928239ebc4fa0bda5b01666e113bfe2401e2 100644
(file)
--- a/
utils/tang/files/tang.init
+++ b/
utils/tang/files/tang.init
@@
-4,7
+4,7
@@
START=50
USE_PROCD=1
start_service() {
- KEYS=$(find /usr/share/tang/db -name "*.jw*" -maxdepth 1 | wc -l)
+ KEYS=$(find /usr/share/tang/db -name "*.jw*" -maxdepth 1
2>/dev/null
| wc -l)
if [ -z "${KEYS}" ] || [ "${KEYS}" = "0" ]; then # if db is empty generate new key pair
mkdir -p /usr/share/tang/db
/usr/sbin/tangd-keygen /usr/share/tang/db
git clone https://git.99rst.org/PROJECT