File: settings.pl

package info (click to toggle)
chiark-utils 4.1.10
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 752 kB
  • ctags: 482
  • sloc: perl: 2,902; ansic: 1,951; sh: 777; makefile: 260; tcl: 228
file content (20 lines) | stat: -rw-r--r-- 667 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# configuration, for putting in /etc/chiark-backup

chdir '/var/lib/chiark-backup' or die $!;
push(@INC,'/usr/share/chiark-backup');
$ENV{'PATH'} =~ s,^/usr/share/chiark-backup,,;
$ENV{'PATH'}= '/usr/share/chiark-backup:'.$ENV{'PATH'};

# This sets both blocksizes to 512b. Note that both must be the
# same if using the zftape floppy tape driver, since that requires
# blocks to be the right size, but dd with the obs=10k option
# doesn't pad the final block to the blocksize...

$blocksize= 1;
$blocksizebytes= 512*$blocksize;
$softblocksizekb= 1;
$softblocksizebytes= 1024*$softblocksizekb;
$tapename= 'st0';
$tape= "/dev/$tapename";
$ntape= "/dev/n$tapename";
1;