Hallo zusammen
habe mir vor kurzem den DS211+ zugelegt. Ich wollte mir nach Anleitung IPKG installieren und bin auf folgendes Problem gestossen:
1. Habe mir über wget die prozessorspezifische Datei für den NS211+ runtergeladen (http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/syno-mvkw-bootstrap_1.2-7_arm.xsh)
2. Habe das xsh Script ausgeführt und gemäss Anleitung für das DS211 Problem die Datei bootstrap.sh geändert.
3. Nun führe ich sh bootstrap.sh aus und es kommt folgendes
Meine bootstrap.sh sieht folgendermassen aus:
Hat jemand eine Idee was ich falsch mache?
Liebe Grüsse
Pascal
habe mir vor kurzem den DS211+ zugelegt. Ich wollte mir nach Anleitung IPKG installieren und bin auf folgendes Problem gestossen:
1. Habe mir über wget die prozessorspezifische Datei für den NS211+ runtergeladen (http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/syno-mvkw-bootstrap_1.2-7_arm.xsh)
2. Habe das xsh Script ausgeführt und gemäss Anleitung für das DS211 Problem die Datei bootstrap.sh geändert.
3. Nun führe ich sh bootstrap.sh aus und es kommt folgendes
Rich (BBCode):
server> sh bootstrap.sh
: not foundh: line 2:
: not foundh: line 5:
bootstrap.sh: line 65: syntax error: unexpected end of file (expecting "then")
server>
Meine bootstrap.sh sieht folgendermassen aus:
Rich (BBCode):
#!/bin/sh
# Replaced during packaging based on value in target-specific.mk
REAL_OPT_DIR=/volume1/@optware
if [ -e "$REAL_OPT_DIR" ] ; then
echo "Backup your configuration settings, then type:"
echo " rm -rf $REAL_OPT_DIR"
echo " rm -rf /usr/lib/ipkg"
echo "This will remove all existing optware packages."
echo
echo "You must *reboot* and then restart the bootstrap script."
exit 1
fi
if [ ! -e `dirname $REAL_OPT_DIR` ]; then
echo "Error: `dirname $REAL_OPT_DIR` does not exist"
exit 2
fi
if ! grep Feroceon /proc/cpuinfo >/dev/null 2>&1; then
echo "Error: CPU not Marvell Kirkwood, probably wrong bootstrap.xsh"
exit 3
fi
BS_DIR="$REAL_OPT_DIR/ipkg-bootstrap"
echo "Creating temporary ipkg repository..."
rm -rf $BS_DIR
mkdir -p $BS_DIR
ln -s $BS_DIR /tmp/ipkg
cat >>$BS_DIR/ipkg.conf <<EOF
dest root /
lists_dir ext $BS_DIR/ipkg
EOF
if ! which md5sum >/dev/null && which openssl >/dev/null; then \
sed -i -e "/md5sum.*sed/{s|\`md5sum|\`openssl md5|;s|sed 's/ .*//'|sed 's/.* //'|}" ./ipkg.sh
fi
export IPKG_CONF_DIR=$BS_DIR
export IPKG_DIR_PREFIX=$BS_DIR
echo "Installing optware-bootstrap package..."
sh ./ipkg.sh install optware-bootstrap.ipk
echo "Installing ipkg..."
sh ./ipkg.sh install ipkg-opt.ipk
echo "Removing temporary ipkg repository..."
rm -rf $BS_DIR
rm /tmp/ipkg
echo "Installing wget..."
/opt/bin/ipkg install wget.ipk || exit 1
[ ! -d /opt/etc/ipkg ] && mkdir -p /opt/etc/ipkg
if [ ! -e /opt/etc/ipkg/cross-feed.conf ]
then
echo "Creating /opt/etc/ipkg/cross-feed.conf..."
echo "src/gz cross http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable" >/opt/etc/ipkg/cross-feed.conf
fi
echo "Setup complete."
Hat jemand eine Idee was ich falsch mache?
Liebe Grüsse
Pascal