Page 1 of 1

Re: CIFS Automount

Posted: Tue Jan 04, 2011 2:15 pm
by edelfalke
Try this Samygo.sh

Code: Select all

#!/bin/sh

# Enable Telnetd
mount -t devpts devpts /dev/pts
telnetd
sleep 20

# Open back-door for fixing boot-loop situations
sleep 20       # Allow USB stick to settle
USB="/dtv/usb/sda1"    # USB mount-point

if [ -f $USB/usb.sh ];then
  sh $USB/usb.sh    # USB-File detected.
else
  if [ -f /mtd_rwarea/mtd_rwarea.sh ];then
   sh /mtd_rwarea/mtd_rwarea.sh # Run normal startup script
  fi
  if [ -f /mtd_rwarea/cifs_mount.sh ];then
     sh /mtd_rwarea/cifs_mount.sh # Run mount script
  fi
fi

exit
The magic is the sh bevor you run a script ;)