I recently installed openWRT on an WL500g Deluxe.
I followed the tutorials to install an usb key. It worked fine . The usb key is placed at location /opt.
Additionally, I reserved 25 M of the usb key to a linux swap partition and activated it by modifying the proposed /etc/init.d/S11mount script as follows :
#!/bin/sh
# Which device needs to be mounted?
MOUNT_DEVICE0=/dev/scsi/host0/bus0/target0/lun0/part1
i=0
# Wait 15s, mount when ready, and continue if it dosnt get ready within 15s
while [ $i -le 15 ]
do
if [ -e $MOUNT_DEVICE0 ]
then
mount $MOUNT_DEVICE0 /opt/
echo "Success: $MOUNT_DEVICE0"
# JLM 10-01-2006 swapon
swapon /dev/scsi/host0/bus0/target0/lun0/part5
exit 0
fi
sleep 1
i=`expr $i + 1`
done
And it works.
But, I have a problem when installing new packages to /opt : when I try to install packages through :
ipkg -d opt install <name of package>
all element are installed in a new directory /opt/opt. Example for libs : /opt/opt/lib and not as expected /opt/lib.
can you help me and tell me what is wrong ?
