Hi,
I just picked up a DSM-G600 from Circuit City for $99 and 300GB/16MB harddrive from CompUSA for about $79 after rebates. Not bad for under $200. I managed to get fun_plug working.
Vim put it DOS format by default on Windows so the script wasn't working... later I :set fileformat=unix and saved it then things started working.
Here's what I have:
#!/bin/sh
echo "fun_plug executed at `date`" >> /mnt/HD_a2/fun_plug.log
# busybox was posted here http://kwzs.be/busybox by Kevin (thanks)
# I wanted to see what's enabled for busybox
/mnt/HD_a2/busybox --help > /mnt/HD_a2/busybox.log 2>&1 &
# Neither one of these two lines work for me, does anyone know why?
#/mnt/HD_a2/busybox nc -l -p 10023 -e /bin/sh &
/mnt/HD_a2/busybox telnetd -p 23 -l /bin/sh -f /welcome.msg &
# This was posted by loki (thanks)
sleep 20
# kill samba
/bin/smb stop
# Start samba and read the conf file on the hd
/usr/sbin/samba/smbd -D -s /mnt/HD_a2/smb.conf
/usr/sbin/samba/nmbd -D -s /mnt/HD_a2/smb.conf
Anyway, telnet doesn't seem to work for me. Using busybox nc, I keep getting "Command not found" or something simliar messages when I type anything from the telnet session. The 2nd method using telnetd connects then terminals as soon as I type anything.
By the way, I'm looking for toolchain for compiling utils for this box. Does anyone know where to find it?
Thanks,
Quang