summaryrefslogtreecommitdiff
path: root/sysvinit/netbsd/cloudfinal
blob: 82e1f1c2c7318d0c5c9bfa7eb475e1067e16db67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

# PROVIDE: cloudfinal
# REQUIRE: LOGIN cloudconfig

$_rc_subr_loaded . /etc/rc.subr

name="cloudinit"
start_cmd="start_cloud_init"
start_cloud_init()
{
    test -e /etc/cloud/cloud-init.disabled \
      && warn "cloud-init disabled by cloud-init.disabled file" \
      && exit 0
    /usr/pkg/bin/cloud-init modules --mode final
}

load_rc_config $name
run_rc_command "$1"