#!/bin/sh export DISPLAY=:0 export LD_ASSUME_KERNEL=2.4.1 DEB=/SD/SD_1/debian-etch if ! grep -q $DEB/proc /proc/mounts || [ "$REMOUNT" = yes ] then if ! grep -q noatime /proc/mounts then mount -o remount,noatime /SD/SD_1 fi if ! grep -q /proc/bus/usb /proc/mounts then mount -t usbdevfs usb /proc/bus/usb fi for i in /proc /tmp /dev /mnt/nandflash2 /proc/bus/usb do if ! grep -q $DEB$i /proc/mounts then mount -o bind $i $DEB$i fi done if ! grep -q $DEB/realroot /proc/mounts then mount -o bind / $DEB/realroot fi fi chroot $DEB "$@"