mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-12-28 17:44:47 +01:00
12 lines
258 B
Bash
12 lines
258 B
Bash
|
#! /bin/sh
|
||
|
|
||
|
# If this file exists, we send that message back, then sleep.
|
||
|
if [ $# = 0 ] && [ -f openingd-version ]; then
|
||
|
# lightningd expects us to write to stdin!
|
||
|
cat openingd-version >&0
|
||
|
sleep 10
|
||
|
exit 0
|
||
|
fi
|
||
|
|
||
|
exec "$(cat openingd-real)" "$@"
|