File: cloudinitlocal

package info (click to toggle)
cloud-init 22.4.2-1%2Bdeb12u3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 9,088 kB
  • sloc: python: 108,898; sh: 4,091; makefile: 147; xml: 22
file content (18 lines) | stat: -rwxr-xr-x 382 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

# PROVIDE: cloudinitlocal
# REQUIRE: NETWORKING

# After NETWORKING because we don't want staticroute to wipe
# the route set by the DHCP client toward the meta-data server.
$_rc_subr_loaded . /etc/rc.subr

name="cloudinitlocal"
start_cmd="start_cloud_init_local"
start_cloud_init_local()
{
    /usr/pkg/bin/cloud-init init -l
}

load_rc_config $name
run_rc_command "$1"