Skip to content

Instantly share code, notes, and snippets.

@rhiokim
Created September 6, 2011 15:28
Show Gist options
  • Save rhiokim/1197858 to your computer and use it in GitHub Desktop.
Save rhiokim/1197858 to your computer and use it in GitHub Desktop.
install XMP's base module on xtreamer
#!/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment