Chameleon Applications

Chameleon Applications Svn Source Tree

Root/branches/iFabio/i386/boot1/boot1f32-install.sh

Source at commit 214 created 13 years 5 months ago.
By ifabio, update to chameleon trunk 630, and now the pakage folder is the same as blackosx branch, also add Icon "building" into buildpkg script, and add mint theme info into the English localizable.strings.
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
8if [[ x$1 == x ]]; then
9echo Usage: $0 disknumber;
10exit 0;
11fi
12
13if [[ `dd if=/dev/disk${1}s1 count=8 bs=1 skip=82 | uuencode -m -|head -n 2|tail -n 1` != "RkFUMzIgICA=" ]]; then
14echo "/dev/disk${1}s1" "isn't" a FAT32 partition;
15exit 1;
16fi
17
18if [ ! -f boot1f32 ]; then
19echo "boot1f32 not found";
20exit 1;
21fi
22
23dd if=/dev/disk${1}s1 count=1 bs=512 of=/tmp/origbs
24cp boot1f32 /tmp/newbs
25dd if=/tmp/origbs of=/tmp/newbs skip=3 seek=3 bs=1 count=87 conv=notrunc
26dd of=/dev/disk${1}s1 count=1 bs=512 if=/tmp/newbs
27

Archive Download this file

Revision: 214