-
Notifications
You must be signed in to change notification settings - Fork 1
/
wrap.nano
114 lines (99 loc) · 2.3 KB
/
wrap.nano
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
BASE_DIR=/home/vagrant
NANO_SRC=/usr/src
NANO_ARCH=i386
NANO_NAME=wrap
NANO_DISKIMGDIR=$BASE_DIR/images
NANO_IMGNAME="robobsd.wrap.img"
NANO_KERNEL=WRAP1D
NANO_OBJ=/usr/obj/robobsd/
NANO_CFGDIR=${BASE_DIR}/robobsd/cfg/default
NANO_DATADIR=${BASE_DIR}/robobsd/data
NANO_BOOT0CFG="-o nopacket -s 1 -m 13 -t 36"
NANO_BOOT2CFG="-S38400 -h"
NANO_DRIVE=ada0
# SanDisk Ultra 16GB Compact Flash (50MB/s):
# Phys C/H/S 31045/16/63 Log C/H/S 1947/255/63 LBA
NANO_MEDIASIZE=31293360
NANO_HEADS=16
NANO_SECTS=63
NANO_IMAGES=1
NANO_SLICE_ROOT=s1
NANO_SLICE_CFG=s2
NANO_SLICE_DATA=s3
NANO_CODESIZE=6291456
NANO_CONFSIZE=2048
NANO_DATASIZE=-1
NANO_PACKAGE_DIR=${BASE_DIR}/robobsd/packages/All
#
CONF_BUILD="
WITHOUT_ACPI=true
WITHOUT_ATM=true
WITHOUT_AUDIT=true
WITHOUT_BIND_DNSSEC=true
WITHOUT_BIND_ETC=true
WITHOUT_BIND_LIBS_LWRES=true
WITHOUT_BLUETOOTH=true
WITHOUT_CALENDAR=true
WITHOUT_CDDL=true
WITHOUT_CVS=true
WITHOUT_DICT=true
WITHOUT_EXAMPLES=true
WITHOUT_FORTRAN=true
WITHOUT_GAMES=true
WITHOUT_GCOV=true
WITHOUT_GPIB=true
WITHOUT_HTML=true
WITHOUT_I4B=true
WITHOUT_INET6=true
WITHOUT_INFO=true
WITHOUT_IPFILTER=true
WITHOUT_IPX=true
WITHOUT_KERBEROS=true
WITHOUT_LIBKSE=true
WITHOUT_LOCALES=true
WITHOUT_LPR=true
WITHOUT_MAN=true
WITHOUT_NETCAT=true
WITHOUT_NIS=true
WITHOUT_NLS=true
WITHOUT_NS_CACHING=true
WITHOUT_OBJC=true
WITHOUT_PROFILE=true
WITHOUT_RCMDS=true
WITHOUT_RCS=true
WITHOUT_RESCUE=true
WITHOUT_SENDMAIL=true
WITHOUT_SHAREDOCS=true
WITHOUT_SSP=true
WITHOUT_SYSCONS=true
"
CONF_INSTALL="$CONF_BUILD
WITHOUT_TOOLCHAIN=true
WITHOUT_INSTALLLIB=true
INSTALL_NODEBUG=true
"
customize_cmd cust_comconsole
customize_cmd cust_boot_cfg
customize_cmd cust_install_files
customize_cmd cust_pkgng
customize_cmd cust_allow_ssh_root
customize_cmd cust_create_dirs
cust_boot_cfg () (
cd ${NANO_WORLDDIR}
echo "console=\"comconsole\"" >> boot/loader.conf
echo "comconsole_speed=\"38400\"" >> boot/loader.conf
echo "autoboot_delay=\"2\"" >> boot/loader.conf
echo "beastie_disable=\"YES\"" >> boot/loader.conf
echo "hint.acpi.0.disabled=\"1\"" >> boot/loader.conf
)
cust_create_dirs() (
cd ${NANO_WORLDDIR}
mkdir app
ln -s app home
echo "/dev/${NANO_DRIVE}${NANO_SLICE_DATA} /app ufs rw 2 2" >> etc/fstab
rm -rf usr/lib/debug
)
last_orders () (
rm -f ${NANO_DISKIMGDIR}/${NANO_IMGNAME}.gz
gzip ${NANO_DISKIMGDIR}/${NANO_IMGNAME}
)