llvm: Add the serverctl script.

This commit is contained in:
Cristiano Giuffrida 2014-06-18 13:57:16 +02:00 committed by Lionel Sambuc
parent 4ddc42d97a
commit 8eb30202e6

20
minix/llvm/serverctl Executable file
View File

@ -0,0 +1,20 @@
#!/bin/bash
mode=$1
shift || mode="no_action"
ROOT=../..
IMAGE=$( readlink -f $ROOT/minix_x86.img)
case "$mode" in
'buildimage')
(cd $ROOT && CREATE_IMAGE_ONLY=1 releasetools/x86_hdimage.sh)
;;
'start')
(cd ../../../obj.i386/destdir.i386/multiboot && kvm -nographic -kernel kernel -append "console=tty00 rootdevname=c0d0p1" -initrd "mod01_ds,mod02_rs,mod03_pm,mod04_sched,mod05_vfs,mod06_memory,mod07_tty,mod08_mfs,mod09_vm,mod10_pfs,mod11_init" -hda $IMAGE)
;;
*)
echo "Invalid action: $mode"
exit 1
;;
esac