Root/
Source at commit 1166 created 13 years 10 days ago. By meklort, Fixed recent Makefile changes. Please do not use /Users/evan/SourceCode/tmp/chameleon/trunk or VPATH. the *only* time you should use /Users/evan/SourceCode/tmp/chameleon/trunk is when setting the SRCROOT variable. Also note that very soon make pkg is going to be removed. The pkg build script in trunk is very out of date. Instead please use the package maker at http://forge.voodooprojects.org/p/chameleonApplications/. Once this is ready for trunk it will be merged. | |
---|---|
1 | #!/bin/sh␊ |
2 | ␊ |
3 | # boot1f32-install.sh␊ |
4 | #␊ |
5 | # Created by mackerintel on 2/2/09.␊ |
6 | # Copyright 2009 mackerintel. All rights reserved.␊ |
7 | ␊ |
8 | if [[ x$1 == x ]]; then␊ |
9 | ␉echo Usage: $0 disknumber;␊ |
10 | ␉exit 0;␊ |
11 | fi␊ |
12 | ␊ |
13 | if [[ `dd if=/dev/disk${1}s1 count=8 bs=1 skip=82 | uuencode -m -|head -n 2|tail -n 1` != "RkFUMzIgICA=" ]]; then␊ |
14 | ␉echo "/dev/disk${1}s1" "isn't" a FAT32 partition;␊ |
15 | ␉exit 1;␊ |
16 | fi ␊ |
17 | ␊ |
18 | if [ ! -f boot1f32 ]; then␊ |
19 | ␉echo "boot1f32 not found";␊ |
20 | ␉exit 1;␊ |
21 | fi␊ |
22 | ␊ |
23 | dd if=/dev/disk${1}s1 count=1 bs=512 of=/tmp/origbs␊ |
24 | cp boot1f32 /tmp/newbs␊ |
25 | dd if=/tmp/origbs of=/tmp/newbs skip=3 seek=3 bs=1 count=87 conv=notrunc␊ |
26 | dd of=/dev/disk${1}s1 count=1 bs=512 if=/tmp/newbs␊ |
27 |