8 if [ -z "${1}" -o \! -f "${1}" ]; then
9 echo "Usage: $0 cfg_file [-bhiknw]"
10 echo "-i : skip image build"
11 echo "-w : skip buildworld step"
12 echo "-k : skip buildkernel step"
13 echo "-b : skip buildworld and buildkernel step"
20 if [ \! -d /usr/obj/Rescue ]; then
21 mkdir -p /usr/obj/Rescue
24 sh ../nanobsd.sh $* -c ${CFG}
26 F32="/usr/obj/Rescue/rescue_${today}_x32"
27 D32="/usr/obj/nanobsd.rescue_i386"
28 if [ -f "${D32}/_.disk.full" ]; then
29 mv "${D32}/_.disk.full" "${F32}.img"
31 if [ -f "${D32}/_.disk.iso" ]; then
32 mv "${D32}/_.disk.iso" "${F32}.iso"
35 F64="/usr/obj/Rescue/rescue_${today}_x64"
36 D64="/usr/obj/nanobsd.rescue_amd64"
37 if [ -f "${D64}/_.disk.full" ]; then
38 mv "${D64}/_.disk.full" "${F64}.img"
40 if [ -f "${D64}/_.disk.iso" ]; then
41 mv "${D64}/_.disk.iso" "${F64}.iso"