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

# PROVIDE: cloudconfig
# REQUIRE: cloudinit
# BEFORE: sshd

$_rc_subr_loaded . /etc/rc.subr

name="cloudinit"
start_cmd="start_cloud_init"
start_cloud_init()
{
    /usr/pkg/bin/cloud-init modules --mode config
}

load_rc_config $name
run_rc_command "$1"