std.c: Improve some comments
[sunny256-utils.git] / cdlabel
blobe9136c88ac60d17f9ea4b1cbb7d3ebc47b69128c
1 #!/bin/sh
3 # cdlabel
4 # File ID: 502cd7ae-5d37-11df-a883-90e6ba3022ac
5 # Skriver ut volume label på CDROM’en som står i.
7 device=/dev/cdrom
9 if [ "$1" != "" ]; then
10 device=$1
13 if [ ! -r $device ]; then
14 echo "$0: $device: Not readable" >&2
15 exit 1
18 # Først tar vi en fake read for å unngå error
19 until head -c 1 $device >/dev/null; do
21 done
23 head -c 32840 $device | tail -c 32 | rmspcbak