Skip to content

Commit

Permalink
Make sure that /mnt/games exists and is a directory
Browse files Browse the repository at this point in the history
  • Loading branch information
DirtyHairy committed May 16, 2020
1 parent 9a6cbdf commit 2d5d032
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/busybox/files/etc/init.d/rcS
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ for i in 0 1 2 3; do
echo 1200000 > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_setspeed
done

test -e /mnt/sys && test ! -d /mnt/sys && rm -f /mnt/sys
test -d /mnt/sys || mkdir /mnt/sys
for dir in sys games; do
test -e /mnt/$dir && test ! -d /mnt/$dir && rm -f /mnt/$dir
test -d /mnt/$dir || mkdir /mnt/$dir
done

IFUP_DELAY=5
LOGFILE="/mnt/sys/diagnostics.log"
Expand Down Expand Up @@ -69,7 +71,7 @@ if test -e /mnt/developer; then

echo >> "$LOGFILE"
ps aux >> "$LOGFILE"

fi

/usr/bin/dumper&

0 comments on commit 2d5d032

Please sign in to comment.