current commit
260715.2 · marge: add new machine
#!/bin/sh

case "$(myhostname)" in
  nas|nas2)
    echo "cannot mount media on nas; the nas IS the media!" >&2
    exit 1
    ;;
  duff|marge)
    if [ ! $1 ] || [ $1 != down ]; then
      sudo mount nas:/m /m
    else
      sudo umount /m
    fi
    ;;
  flanders|wiggum|milhouse|otto)
    msshfs-readonly down /m
    if [ ! $1 ] || [ $1 != down ]; then
      msshfs-readonly nas:/m /m
    fi
    ;;
  *)
    msshfs down /m
    if [ ! $1 ] || [ $1 != down ]; then
      msshfs nas:/m /m
    fi
    ;;
esac