http://code.google.com/p/shellinabox/
Has anybody tried to install this? I'm sure it's pretty straightforward, just not sure where to start. Could even be easy to package into a spk, not sure.
Any thoughts would be great!

ipkg install gawk
ipkg install gcc
ipkg install makecd /tmp
wget http://code.google.com/p/shellinabox/downloads/detail?name=shellinabox-2.10.tar.gz
tar xvfz shellinabox-2.10.tar.gz
cd /tmp/shellinabox-2.10./configure
make
make installshellinaboxd -b#!/bin/sh
if [ "start" = "\$1" ]; then
shellinaboxd -b
elif [ "stop" = "\$1" ]; then
killall shellinaboxd
elif [ "restart" = "\$1" ]; then
\$0 stop
\$0 start
elif [ "" = "\$1" ]; then
echo "use start, stop or restart as arguments."
fi
chmod +x S99zzsiab.sh
bubblesnout wrote:For anyone interested, I got this going.
- Code: Select all
#!/bin/sh
if [ "start" = "\$1" ]; then
shellinaboxd -b
elif [ "stop" = "\$1" ]; then
killall shellinaboxd
elif [ "restart" = "\$1" ]; then
\$0 stop
\$0 start
elif [ "" = "\$1" ]; then
echo "use start, stop or restart as arguments."
fi

CoolRaoul wrote:Could someone explain the purpose of the backslashes (as in "\$1") in that script?
[root@Synology /tmp]# cat shellin.sh
#!/bin/sh
if [ "start" = "\$1" ]; then
echo "got start"
else
echo "got nothing"
fi
[root@Synology /tmp]# ./shellin.sh start
got nothing
[root@Synology /tmp]# cat shellin.sh
#!/bin/sh
if [ "start" = "$1" ]; then
echo "got start"
else
echo "got nothing"
fi
[root@Synology /tmp]# ./shellin.sh start
got start

Users browsing this forum: No registered users and 4 guests