github.com/u-root/u-root@v7.0.1-0.20200915234505-ad7babab0a8e+incompatible/integration/testcmd/helloworld/uinit/helloworld.go (about) 1 // Copyright 2018 the u-root Authors. All rights reserved 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package main 6 7 import ( 8 "fmt" 9 10 "golang.org/x/sys/unix" 11 ) 12 13 // The most trivial init script. 14 func main() { 15 fmt.Println("HELLO WORLD") 16 17 unix.Reboot(unix.LINUX_REBOOT_CMD_POWER_OFF) 18 }