Created
September 6, 2011 16:28
-
-
Save rhiokim/1198057 to your computer and use it in GitHub Desktop.
install XMP's base module on xtreamer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
base=`pwd` | |
programs=`dirname $base` | |
xmp=`dirname $programs` | |
xmproot=`dirname $xmp` | |
rm /sbin/www/xmproot | |
rm /sbin/www/xmp | |
ln -s $xmproot /sbin/www/xmproot | |
cp $xmp/busybox /usr/bin/ | |
rm -R /opt | |
mkdir /tmp/usbmounts/sda1/opt | |
ln -s /tmp/usbmounts/sda1/opt /opt | |
./ipkg-cl install uclibc-opt_0.9.28-13_mipsel.ipk | |
./ipkg-cl install ipkg-opt_0.99.163-10_mipsel.ipk | |
/opt/bin/ipkg update | |
/opt/bin/ipkg install cron | |
/opt/bin/ipkg install ntp | |
/opt/bin/ipkg install unrar | |
cp -R preconf/* / | |
cp -R preconf/opt/* /opt/ | |
/bin/chmod 644 /etc/init.d/s45telnet | |
/opt/bin/ipkg list_installed | |
mkdir /sbin/www/xmproot/.transmissionconfig | |
cp -R /root/transmission/* /sbin/www/xmproot/.transmissionconfig | |
rm -R /root/trnasmission | |
#Midnight Commander Install | |
echo "Midnight Commander Install Started" ^M | |
/opt/bin/ipkg install mc ^M | |
echo "Midnight Commander Install Done."^M | |
cp -R /sbin/www/xmproot/xmp/programs/mc/preconf/* /^M | |
#OpenSSH Install | |
echo "OpenSSH install Started" ^M | |
rm -R /opt/etc/openssh ^M | |
/opt/bin/ipkg install openssh ^M | |
echo "OpenSSH install Done" ^M | |
cp -R ./preconf/* / ^M | |
^M | |
cp -R ./preconf/opt/* /opt/^M | |
/bin/chmod 644 /etc/init.d/S40sshd^M | |
sleep 2 ^M | |
killall sshd ^M | |
#Transmission Install | |
echo "Transmission Install Started" | |
/opt/bin/ipkg install ./transmission_1.76-1_mipsel.ipk ^M | |
cp -R /preconf/* / ^M | |
cp -R .transmissionconfig /sbin/www/xmproot/ ^M | |
mkdir /sbin/www/xmproot/download ^M | |
echo "*/5 * * * * root /root/transmission/transmission-queue" >> /opt/var/cron/crontabs/root ^M | |
/bin/chmod 755 /sbin/www/xmproot/.transmissionconfig/transmission-queue ^M | |
/bin/chmod 644 /etc/init.d/S227transmission ^M | |
echo "Transmission Install Done." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment