File: dr_mount

package info (click to toggle)
draai 20110603-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 500 kB
  • sloc: sh: 751; perl: 221; makefile: 34
file content (14 lines) | stat: -rwxr-xr-x 306 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /bin/sh

# This file is maintained at http://git.mdcc.cx/draai
# Copyright: © 2008 Joost van Baal. This program is in the public domain.

# usage: 
#  dr_mount
#  dr_mount /dev/sda1

dev=${1:-/dev/sdb1}

sudo mount -o uid=$USER,iocharset=utf8,fmask=133,dmask=022,check=relaxed \
 $dev $HOME/media/usb