16 lines
306 B
Bash
16 lines
306 B
Bash
#!/bin/sh
|
|
|
|
# [1] first install (install source code)
|
|
if [ -e /home/sats/satsd/first_install ]; then
|
|
|
|
# install source code
|
|
git clone ssh://smmp-server/satsd /mnt/home/sats/satsd/source \
|
|
&& rm /home/sats/satsd/first_install \
|
|
|| exit;
|
|
|
|
fi
|
|
|
|
|
|
# [2] Propagate script
|
|
sh /home/sats/satsd/source/boot $*;
|