#!/bin/sh # Replaced during packaging based on value in target-specific.mk REAL_OPT_DIR=/mnt/.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 BSDIR="$REAL_OPT_DIR/ipkg-bootstrap" echo "Creating temporary ipkg repository..." rm -rf $BSDIR mkdir -p $BSDIR ln -s $BSDIR /tmp/ipkg cat >>$BSDIR/ipkg.conf </opt/etc/ipkg/cross-feed.conf fi echo "Setup complete."