mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
67a391f8d0
They might need to know this before they do anything, so cmdline seems most natural. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
12 lines
271 B
Bash
Executable File
12 lines
271 B
Bash
Executable File
#! /bin/sh
|
|
|
|
# If this file exists, we send that message back, then sleep.
|
|
if [ "$1" != "--version" ] && [ -f openingd-version ]; then
|
|
# lightningd expects us to write to stdin!
|
|
cat openingd-version >&0
|
|
sleep 10
|
|
exit 0
|
|
fi
|
|
|
|
exec "$(cat openingd-real)" "$@"
|