Allow text files (rc.txt) in addition to rc files. We will get a very huge load of complaints and big trouble from the regular user base else.

This commit is contained in:
Lorenz Meier 2013-01-06 01:01:25 +01:00
parent c08135ffef
commit d593820bf5
1 changed files with 6 additions and 2 deletions

View File

@ -46,8 +46,12 @@ if [ -f /fs/microsd/etc/rc ]
then
echo "[init] reading /fs/microsd/etc/rc"
sh /fs/microsd/etc/rc
else
echo "[init] script /fs/microsd/etc/rc not present"
fi
# Also consider rc.txt files
if [ -f /fs/microsd/etc/rc.txt ]
then
echo "[init] reading /fs/microsd/etc/rc.txt"
sh /fs/microsd/etc/rc.txt
fi
#