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