Commit | Line | Data |
---|---|---|
de611570 KM |
1 | #!/bin/sh |
2 | # compatibility with old installboot program | |
3 | # | |
4 | # @(#)installboot.sh 7.1 (Berkeley) %G% | |
5 | # | |
6 | if [ $# != 2 ] | |
7 | then | |
8 | echo "Usage: installboot bootprog device" | |
9 | exit 1 | |
10 | fi | |
11 | if [ ! -f $1 ] | |
12 | then | |
13 | echo "Usage: installboot bootprog device" | |
14 | echo "${1}: bootprog must be a regular file" | |
15 | exit 1 | |
16 | fi | |
17 | if [ ! -c $2 ] | |
18 | then | |
19 | echo "Usage: installboot bootprog device" | |
20 | echo "${2}: device must be a char special file" | |
21 | exit 1 | |
22 | fi | |
23 | /sbin/disklabel -B -b $1 $2 | |
24 | exit $? |