#!/bin/sh # Mount partition 1 as /opt folder - then wait for the drive to mount mount /dev/scsi/host0/bus0/target0/lun0/part1 /opt sleep 5 # set path so optware binaries are automatically found as new commands echo "export PATH=$PATH:/opt/bin:/opt/sbin" > /tmp/root/.profile export PATH=$PATH:/opt/bin:/opt/sbin # auto-run any optware scripts found in /opt/etc/config folder for I in `/bin/ls /opt/etc/config/*.startup` do sh $I & done