summaryrefslogtreecommitdiffstats
path: root/modules.d/35connman/cm-lib.sh
blob: 69901f37f86479b35c3cd45b36a3af8f5b4403ac (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

type getcmdline > /dev/null 2>&1 || . /lib/dracut-lib.sh

cm_generate_connections() {
    if getargbool 0 rd.neednet; then
        echo '[ -f /tmp/cm.done ]' > "$hookdir"/initqueue/finished/cm.sh
        mkdir -p /run/connman/initrd
        : > /run/connman/initrd/neednet # activate ConnMan services
    fi
}