| Tim Windelschmidt | 18e9a3f | 2024-04-08 21:51:03 +0200 | [diff] [blame] | 1 | package main |
| 2 | |||||
| 3 | import ( | ||||
| 4 | "context" | ||||
| 5 | "fmt" | ||||
| 6 | |||||
| 7 | "golang.org/x/sys/unix" | ||||
| 8 | |||||
| 9 | "source.monogon.dev/osbase/bringup" | ||||
| 10 | ) | ||||
| 11 | |||||
| 12 | func main() { | ||||
| 13 | bringup.Runnable(func(ctx context.Context) error { | ||||
| 14 | fmt.Println("_BRINGUP_LAUNCH_SUCCESS_") | ||||
| 15 | unix.Reboot(unix.LINUX_REBOOT_CMD_POWER_OFF) | ||||
| 16 | return nil | ||||
| 17 | }).Run() | ||||
| 18 | } | ||||