changelog shortlog tags branches changeset files revisions annotate raw help

Mercurial > hg > plan9front / rc/bin/dosmnt

changeset 7243: 34f64dcbbc25
parent: efddda59690a
author: cinap_lenrek@felloff.net
date: Fri, 17 May 2019 18:14:10 +0200
permissions: -rwxr-xr-x
description: 7l: don't hardcode 4k pagesize, use INITRND
1 #!/bin/rc
2 
3 rfork e
4 if(! ~ $#* 2){
5  echo 'usage: dosmnt N mntpt' >[1=2]
6  exit usage
7 }
8 
9 x=(`{ls /dev/sd??/dos* >[2]/dev/null |uniq})
10 if(test $#x -lt $1){
11  echo 'not that many dos disks' >[1=2]
12  exit usage
13 }
14 
15 if(! test -f /srv/dos)
16  dossrv >/dev/null </dev/null >[2]/dev/null
17 
18 mount -c /srv/dos $2 $x($1)