EXTENSION=/mnt/us/extensions/extend
PATH=$PATH:/opt/bin:/opt/sbin
mount -o loop,noatime -t ext3 /mnt/us/extend/optware.img /mnt/us/extend/fs
mount --bind /mnt/us/extend/fs/opt/etc /opt/etc
mount --bind /mnt/us/extend/fs/opt/share /opt/share
mount --bind /mnt/us/extend/fs/opt/lib /opt/lib
mount --bind /mnt/us/extend/fs/opt/bin /opt/bin
mount --bind /mnt/us/extend/fs/opt/tmp /opt/tmp
#Copy keys
#cp /mnt/us/extend/fs/keys/* /var/tmp/root/.ssh/ 


cp -a "${EXTENSION}/stop.json" "${EXTENSION}/menu.json"
