Friday, September 5, 2014

Pogoplug Series v4 - mycloud vs. Freiheit

Hallo,

viele werden schon überlegt haben ob Sie andere Software auf ihrem Pogoplug installieren wollen, da kann ich nur diesen Blog empfehlen:

http://aaronrandall.com/blog/customising-your-pogoplug/

Wer das macht, dem kann ich nur wärmstens empfehlen alles auf ne SD-Karte zu packen und das init script anzupassen ein weiteres von der SD-Karte auszuführen, somit könnt ihr jederzeit wieder zurück wenn ihr eurer init script gebrickt habt:

bash-3.2# cat /etc/init.d/rcS
#! /bin/sh

mount -t proc none /proc
mount -t sysfs none /sys
mount -t devpts none /dev/pts
mount -t tmpfs none /tmp
mkdir /tmp/var

  mount -o "remount,rw" /
  mkdir -p /opt
  mkdir -p /mnt/mmcblk0
  mknod /dev/mmcblk0 b 179 0 2>>/tmp/mylog >>/tmp/mylog
  mount -o "exec" /dev/mmcblk0 /mnt/mmcblk0 2>>/tmp/mylog >>/tmp/mylog
  mount /mnt/mmcblk0/.pogoplug/opt/ /opt
  if [ -e /mnt/mmcblk0/.pogoplug/etc/init.d/rcS2 ] ; then
    . /mnt/mmcblk0/.pogoplug/etc/init.d/rcS2
  else

. /etc/cefs.conf
if /usr/local/cloudengines/bin/blparam | grep cedebug > /tmp/cedebug; then
        . /tmp/cedebug
fi
rm -f /tmp/cedebug

echo "/tmp/core_%e_%t" > /proc/sys/kernel/core_pattern

hostname Pogoplug

ifconfig lo 127.0.0.1
ifconfig eth0 up
# NB: Needs to start with "udhcpc -b " so hbplug_netmgr can find in /proc
udhcpc -b -i eth0 -H `hostname`
mount -t usbfs none /proc/bus/usb

/etc/init.d/db

if [ "x$cedebug" != "x" ]; then
    telnetd
    /usr/sbin/dropbear
fi

/etc/init.d/hbmgr.sh start

  fi

No comments:

Post a Comment