-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage
executable file
·38 lines (31 loc) · 1.16 KB
/
package
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
set -e
export PATH=/cygdrive/y/src/github/vdisk-tools/vgui/bin/release:/cygdrive/z/src/github/vdisk-tools/vgui/bin/release:/Users/josh/src/github/vdisk-tools/bin:$PATH
echo Package started.
date
[[ -z "$DISKTYPE" ]] && DISKTYPE=FAT32
[[ -z "$DISKSIZE" ]] && DISKSIZE=33
echo creating disk image...
if [ ! -f hdd.img ]; then
vmkimg -i hdd.img -M $DISKSIZE -b ./bin/bootsect -t $DISKTYPE>>/dev/zero
fi
echo copying files...
vput hdd.img ./bin/osldr /osldr
vmkdir hdd.img /system/bin
vput hdd.img ./bin/kernel /system/bin/kernel
vput hdd.img ./bin/shell /system/bin/shell
vput hdd.img ./bin/vesadrvr.o /system/bin/vesadrvr.o
if [[ $(vexists hdd.img /system/bin/splash && echo 0 || echo 1) == 0 ]]; then
vput hdd.img ./bin/splash /system/bin/splash
fi
if [[ $(vexists hdd.img /system/bin/font && echo 0 || echo 1) == 0 ]]; then
vput hdd.img ./bin/font /system/bin/font
fi
if [[ $(vexists hdd.img /system/bin/cursor && echo 0 || echo 1) == 0 ]]; then
vput hdd.img ./bin/cursor /system/bin/cursor
fi
echo setting attributes...
vattr hdd.img /osldr rhs
vattr hdd.img /system/bin/kernel rs
vattr hdd.img /system/bin/shell rs
vattr hdd.img /system/bin/vesadrvr.o rs
echo Package Completed.