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