#! /bin/sh # # mount all filesystems matching "sid" # # FIXME noauto # mounting twice causes: # # joostvb@agni:~% st # openpty failed: No such device # mount | grep sid >/dev/null && ( echo already mounted; exit 0 ) grep sid /etc/fstab | while read a b c; do mount $b; done