cynix

x86 UNIX-like OS
git clone git://git.2f30.org/cynix
Log | Files | Refs | README | LICENSE

run.sh (465B)


      1 #!/bin/bash
      2 
      3 if [ ! "$UID" == "0" ]; then
      4 	echo "[+] you need to be root!" 1>&2
      5 	exit
      6 fi
      7 # use -s -S for remote debugging with gdb.
      8 # use -enable-kvm for kvm support.
      9 ./mkcreateimg.sh \
     10 	&& ./installimg.sh \
     11 	&& tunctl -b -u `whoami` &>/dev/null \
     12 	&& ifconfig tap0 up \
     13 	&& qemu -net nic,model=rtl8139 \
     14 		-net tap,ifname=tap0,script=no,downscript=no \
     15 		-serial stdio -fda image.img -boot a -m 32 \
     16 		-localtime -no-acpi -vga std \
     17 	&& tunctl -d tap0 &>/dev/null