Hi,
in your old post-boot file, part 3, 4 aren't mounted properly., you should place them outside the mountig of /opt
mount them after you've activated the swap.
so cut the lines
Code:
mount /dev/discs/disc0/part3 /mnt
mount /dev/discs/disc0/part4 /tmp/harddisk
and paste them under
Code:
# Activate swap
swapon /dev/discs/disc0/part1
so I took your old post-boot file and modified it to something that should work in your situation
Code:
#!/bin/sh
dropbear
# test if USB disc has been attached
# if not - then insert needed modules
#
# uncoment the following 4 lines if using an USB HDD.
if [ ! -d /dev/discs ]
then
insmod scsi_mod && insmod sd_mod && insmod usb-storage && sleep 5s
fi
#Wait for /opt to mount
mount /dev/discs/disc0/part2 /opt
i=0
while [ $i -le 30 ]
do
if [ -d /opt/etc ]
then
break
fi
sleep 1
i=`expr $i + 1`
done
# Activate swap
swapon /dev/discs/disc0/part1
#mount /data shares
mount /dev/discs/disc0/part3 /mnt
mount /dev/discs/disc0/part4 /tmp/harddisk
#to let midnight commander run on terminals, make alias for colored mc
echo "export TERMINFO=/opt/share/terminfo">>/etc/profile
echo "alias mc=\"mc -c\"">>/etc/profile
# Run all active services - active means starts with S
/opt/etc/init.d/rc.unslung