File: init.c

package info (click to toggle)
kvmtool 0.20161128-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,748 kB
  • ctags: 6,310
  • sloc: ansic: 25,215; makefile: 495; asm: 212; sh: 122
file content (11 lines) | stat: -rw-r--r-- 162 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#include <linux/reboot.h>
#include <unistd.h>

int main(int argc, char *argv[])
{
	puts("hello, KVM guest!\r");

	reboot(LINUX_REBOOT_CMD_RESTART);

	return 0;
}