when running the initiate command i'm also getting the "/mnt/setupscript.sh: not found" error.
very annoying, i've tried going into the directory and running from there, tried running from the commands window in the router settings and tried through ssh all end up with the same error.
Also tried the above after a factory reset with no luck.
I had to try it too.
Same error here... _________________ 1x DIR-615 D3 (DD-WRT 15778)
2x WHR-HP-G54 (DD-WRT 14929)
2x WLI-TX4-G54HP (DD-WRT 13064 and autoAP)
1x WZR-HP-G300NH (joke right?)
I have make all in the first post
To install minidlna, samba etc., start Putty from Windows(telnet to router(must have internet connection) ip)->login and type:
/mnt/setupscript.sh samba install
this are the options:
minidlna - Installing minidlna media server
torrent install - Installing transmission torrent client
torrent setup - Setting up transmission torrent client
samba install - Installing Samba server
samba setup - Setting up Samba server
ftp install - Installing pure-ftpd server
ftp setup - Setting up pure-ftpd server
printer - Setting up the USB printer and sharing
hdidle install - Install hd-idle
hdidle remove - Remove hdidle
root@DD-WRT:~# chmod +x /mnt/setupscript.sh
root@DD-WRT:~# sh /mnt/setupscript.sh
: not foundcript.sh: line 13:
: not foundcript.sh: line 14:
/mnt/setupscript.sh: line 15: syntax error: word unexpected (expecting "in")
the attached shell script has Windows line-enders. Saving the file with Unix line-enders lets the script run for me.
I am having other problems with the script though. Once installed, I can no longer ssh to my router. Errors out with - "PTY allocation request failed on channel 0"
Why does the script look for /dev/scsi/? My USB drive lists as /dev/sda. Should I edit the script for this?
The script output is below. Mine's a Buffalo WZR-HP-G300NH
Code:
##################################
# Setup Script. Adapted from wrt160nl.org #
##################################
Make sure Automount is enabled on /mntfind: /dev/scsi/: No such file or directory
done.
Mounting USB drive...
/mnt has been already used. umounting... umount: can't umount /mnt: Device or resource busy
mount: can't find /mnt in /etc/fstab
done.
Copying stuff to USB... mkdir: cannot create directory '/mnt/opt': File exists
cp: omitting directory '/jffs'
done.
Mounting USB over running system... done.
Setting up ipkg... done.
Creating startup scripts... done.
Creating Shutdown Script
done.
Creating Firewall Script
done
Preparing OPKG
mkdir: cannot create directory '/mnt/root': File exists
Installing OPKG
Connecting to downloads.openwrt.org (78.24.191.177:80)
wget: can't open 'opkg_576-1_ar71xx.ipk': File exists
Bus error
rm: cannot remove '/mnt/etc/opkg.conf': No such file or directory
Updating OPKG...
./setupscript.sh: line 460: opkg: not found
Done
Initiation done, router will reboot in 30 seconds........