#!/bin/sh mkdir -p /target/etc case `udpkg --print-os` in linux) cat >/target/etc/fstab <' '' '' '' '' '' >> /target/etc/fstab printf "%-15s %-15s %-7s %-15s %-7s %s\n" proc /proc proc nodev,noexec,nosuid 0 0 >> /target/etc/fstab ;; kfreebsd) cat >/target/etc/fstab <' '' '' '' '' '' >> /target/etc/fstab printf "%-15s %-15s %-7s %-15s %-7s %s\n" proc /proc linprocfs rw 0 0 >> /target/etc/fstab printf "%-15s %-15s %-7s %-15s %-7s %s\n" sys /sys linsysfs rw 0 0 >> /target/etc/fstab printf "%-15s %-15s %-7s %-15s %-7s %s\n" fdesc /dev/fd fdescfs rw 0 0 >> /target/etc/fstab ;; hurd) cat >/target/etc/fstab <' '' '' '' '' '' >> /target/etc/fstab ;; esac