#!/bin/bash

# sourcing our current rc.conf requires this to be a bash script
. /usr/lib/rc/functions

conig(){
    [[ -d /run/tmpfiles.d ]] || mkdir /run/tmpfiles.d
    kmod static-nodes --format=tmpfiles --output=/run/tmpfiles.d/kmod.conf
}

case "$1" in
    start)
        stat_busy "Starting kmod-static-nodes"
        conig
        add_daemon kmod-static-nodes
        stat_done
        ;;
    *)
        echo "usage: $0 {start}"
        exit 1
        ;;
esac
