Skip to content

Commit

Permalink
Merge pull request #26 from Martinski4GitHub/develop
Browse files Browse the repository at this point in the history
Bug fix when adding "startup" calls to "services-start" script.
  • Loading branch information
jackyaz authored Mar 12, 2024
2 parents 8410589 + 06a1225 commit 102a3f2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scmerlin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
## https://github.com/jackyaz/scMerlin ##
## ##
######################################################
# Last Modified: 2023-Jun-09
# Last Modified: 2024-Mar-12
#-----------------------------------------------------

########## Shellcheck directives ###########
Expand Down Expand Up @@ -500,6 +500,9 @@ Auto_ServiceEvent(){
esac
}

##----------------------------------------##
## Modified by Martinski W. [2024-Mar-12] ##
##----------------------------------------##
Auto_Startup(){
case $1 in
create)
Expand All @@ -519,12 +522,12 @@ Auto_Startup(){
fi

if [ "$STARTUPLINECOUNTEX" -eq 0 ]; then
echo "/jffs/scripts/$SCRIPT_NAME_LOWER startup"' & # '"$SCRIPT_NAME$" >> /jffs/scripts/services-start
echo "/jffs/scripts/$SCRIPT_NAME_LOWER startup"' & # '"$SCRIPT_NAME" >> /jffs/scripts/services-start
fi
else
echo "#!/bin/sh" > /jffs/scripts/services-start
echo "" >> /jffs/scripts/services-start
echo "/jffs/scripts/$SCRIPT_NAME_LOWER startup"' & # '"$SCRIPT_NAME$" >> /jffs/scripts/services-start
echo "/jffs/scripts/$SCRIPT_NAME_LOWER startup"' & # '"$SCRIPT_NAME" >> /jffs/scripts/services-start
chmod 0755 /jffs/scripts/services-start
fi
;;
Expand Down

0 comments on commit 102a3f2

Please sign in to comment.