Skip to content

Commit

Permalink
add comments to install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
henne49 committed Jun 6, 2024
1 parent cdfafd1 commit f62aeab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ ln -s $SCRIPT_DIR/service /service/$SERVICE_NAME

# add install-script to rc.local to be ready for firmware update
filename=/data/rc.local

#check if rc.local already exists, if not create it
if [ ! -f $filename ]
then
touch $filename
Expand All @@ -41,4 +43,5 @@ then
echo >> $filename
fi

#check if the service exists? if not add it to rc.local
grep -qxF "$SCRIPT_DIR/install.sh" $filename || echo "$SCRIPT_DIR/install.sh" >> $filename

0 comments on commit f62aeab

Please sign in to comment.