rootfs/usr/local/bin/autorun: adding an explicit check for autorun on new fat32 formatted USER partition
This commit is contained in:
parent
8378ddad95
commit
218825617f
|
@ -4,7 +4,16 @@ source /etc/profile
|
|||
|
||||
folder=${1?}
|
||||
|
||||
if [ -f "${folder}/autorun.sh.asc" ]; then
|
||||
echo "Checking autorun in folder: ${folder}" >/dev/console
|
||||
|
||||
# Check if the folder is /media/USER and has autorun.sh
|
||||
if [ "$folder" == "/media/USER" ] && [ -f "${folder}/autorun.sh" ]; then
|
||||
echo "" >/dev/console
|
||||
echo "++ Autorun: Found /media/USER/autorun.sh" >/dev/console;
|
||||
echo "** Autorun: Executing /media/USER/autorun.sh" >/dev/console
|
||||
/bin/bash "/media/USER/autorun.sh" >/dev/console
|
||||
|
||||
elif [ -f "${folder}/autorun.sh.asc" ]; then
|
||||
echo "" >/dev/console
|
||||
echo "++ Autorun: Found ${folder}/autorun.sh" >/dev/console;
|
||||
gpg --verify "${folder}/autorun.sh.asc" >/dev/null 2>&1 || {
|
||||
|
|
Loading…
Reference in New Issue