Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – planix.SVN – Blame – /os/branches/planix-v0/sys/lib/dist/pc/inst/isfossil – Rev 2

Subversion Repositories planix.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#!/bin/rc
2
 
3
if(! ~ $#* 1){
4
	echo 'usage: isfossil /dev/sdC0/part' >[1=2]
5
	exit usage
6
}
7
 
8
arg=$1
9
if(! cmp -s <{dd -quiet 1 -if $arg -bs 1024 -iseek 127 |
10
	dd -quiet 1 -bs 14 -count 1} <{echo 'fossil config'})
11
	exit noconfig
12
if(! cmp -s <{dd -quiet 1 -if $arg -bs 1024 -iseek 128 |
13
	dd -quiet 1 -bs 4 -count 1 | xd -b | sed 1q} <{echo '0000000  37 76 ae 89'})
14
	exit notwritebuffer
15
exit 0
16