Skip to content
This repository has been archived by the owner on Dec 14, 2020. It is now read-only.

Commit

Permalink
entware: Fix generated services-start script, escaping the $ characte…
Browse files Browse the repository at this point in the history
…r so it gets written rather than interpreted
  • Loading branch information
RMerl committed Jul 10, 2015
1 parent e582490 commit d6be7ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions release/src/router/others/entware.arm/entware-setup.sh
Expand Up @@ -84,17 +84,17 @@ cat > /jffs/scripts/services-start << EOF
script="/opt/etc/init.d/rc.unslung"
i=60
until [ -x "${script}" ]
until [ -x "\${script}" ]
do
i=$(($i-1))
if [ "$i" -lt 1 ]
i=\$((\$i-1))
if [ "\$i" -lt 1 ]
then
logger "Could not start Entware"
exit
fi
sleep 1
done
${script} start
\${script} start
EOF
chmod +x /jffs/scripts/services-start

Expand Down
8 changes: 4 additions & 4 deletions release/src/router/others/entware.mips/entware-setup.sh
Expand Up @@ -84,17 +84,17 @@ cat > /jffs/scripts/services-start << EOF
script="/opt/etc/init.d/rc.unslung"
i=60
until [ -x "${script}" ]
until [ -x "\${script}" ]
do
i=$(($i-1))
if [ "$i" -lt 1 ]
i=\$((\$i-1))
if [ "\$i" -lt 1 ]
then
logger "Could not start Entware"
exit
fi
sleep 1
done
${script} start
\${script} start
EOF
chmod +x /jffs/scripts/services-start

Expand Down

0 comments on commit d6be7ac

Please sign in to comment.