Skip to content

Commit

Permalink
Fix type in config.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
roleoroleo committed Apr 26, 2020
1 parent 8305f4b commit d8f5acf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sdhack/Factory/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,16 @@ sed -i 's/^.\/watch_process/#.\/watch_process/g' /home/app/init.sh

### Replace /home/app/script/update.sh with a more friendly one
echo "### Updating /home/base/tools/extpkg.sh"
cp -r /tmp/sd/newhome/base/tools/extpkg.sh /home/base/tools/extpkg.sh
if [ -f /tmp/sd/newhome/base/tools/extpkg.sh ]; then
cp -r /tmp/sd/newhome/base/tools/extpkg.sh /home/base/tools/extpkg.sh
fi

### Disable the hack for next reboot
echo "### Disabling hack for next reboot"
if [ -e /tmp/sd/Factory.done ]; then
rm -rf /tmp/sd/Factory.done
fi
if [ -e /tmp/sd/Factory.done ]; then
if [ -e /tmp/sd/Factory ]; then
mv /tmp/sd/Factory /tmp/sd/Factory.done
fi

Expand Down

0 comments on commit d8f5acf

Please sign in to comment.