Telemachus - here is my end of rcS code. I can't take credit for it as I've snipped bit's and pieces from other code and made it mine. It works well especially with a SATA drive partition as the optware drive.
Good luck with yours!
-Sarah
# Wait for /opt to mount. For 30 seconds I will try
# each second to mount the hdd partition that
# holds the main system.
# Once it's mounted it will stop trying (common sense).
i=0; while [ $i -le 30 ]; do
mount /dev/sda1 /opt
[ -d /opt/etc ] && break
sleep 1
i=$(expr $i + 1)
done
# This just opens a startup.log and records the number of
# seconds it took to mount the drive. Booting via thumb drive
# takes mine 5 seconds and from SATA, 0 seconds!!
echo "Seconds to mount drive: $i" > /tmp/startup.log 2>&1
# If we couldn't mount the HDD just bail out on the
# rest of post-boot. All the stuff from this point on
# depends on it being mounted. If you have stuff
# that will work regardless, put it before this section.
[ $i -gt 30 ] && return
# If I made it this far the correct drive mounted and
# I can continue on with start up script.
/opt/etc/init.d/optrun.sh >> /tmp/startup.log 2>&1
Categories: Pogoplug Classic
Have a new pink V3 that I just want enough optware to run Samba, but don't want to lose online Pogoplug ability.
I have followed several tuts to modify the rcS file to mount /dev/sda1 to /opt, including trying to mount it directly after a delay.
I can mount with command line, but it won't mount upon startup.
At one point, I accidentally deleted the profile file from /etc, but I just installed the one found in the Yahoo NSLU2 general files. I have checked executable permissions.
Anyone that can help me troubleshoot this?
It looks like an elogant solution, thanks you for sharing. I have tried placing a sleep 30 and sleep 60 prior to the mount without any success. It does show the drive mounted as SOMETHING and that it is extension 2. I wonder if it would be better to redirect that mount to opt...
BINGO, got it! Your solution worked great for me, thanks a million, and Merry Xmas!
Now on to learning how to actually USE the optware.
:)
It seems that Samba2 install no longer includes libnsl, and it also doesn't seem to have installed SWAT.
The following solves this problem (and is more for my future reference than anything else)
ipkg install libnsl

RSS


