Mister Spy Say ="Hello Kids ... :D" ___ ____ _ _____ | \/ (_) | | / ___| | . . |_ ___| |_ ___ _ __ \ `--. _ __ _ _ | |\/| | / __| __/ _ \ '__| `--. \ '_ \| | | | | | | | \__ \ || __/ | /\__/ / |_) | |_| | \_| |_/_|___/\__\___|_| \____/| .__/ \__, | | | __/ | |_| |___/ Bot Mister Spy V3
Mister Spy

Mister Spy

Current Path : /lib/dracut/modules.d/35connman/
Upload File :
Current File : //lib/dracut/modules.d/35connman/module-setup.sh

#!/usr/bin/bash

# called by dracut
check() {
    require_binaries sed grep connmand connmanctl connmand-wait-online || return 1

    # do not add this module by default
    return 255
}

# called by dracut
depends() {
    echo dbus systemd bash
    return 0
}

# called by dracut
installkernel() {
    return 0
}

# called by dracut
install() {
    # We don't need `ip` but having it is *really* useful for people debugging
    # in an emergency shell.
    inst_multiple ip sed grep

    inst_script "$moddir/netroot.sh" "/sbin/netroot"
    inst connmand
    inst connmanctl
    inst connmand-wait-online
    inst "$dbussystem"/connman.conf
    [[ $hostonly ]] && [[ -f $dracutsysrootdir/etc/connman/main.conf ]] && inst /etc/connman/main.conf
    inst_dir /usr/lib/connman/plugins
    inst_dir /var/lib/connman

    inst_hook cmdline 99 "$moddir/cm-config.sh"

    inst_simple "$moddir"/cm-initrd.service "$systemdsystemunitdir"/cm-initrd.service
    inst_simple "$moddir"/cm-wait-online-initrd.service "$systemdsystemunitdir"/cm-wait-online-initrd.service

    $SYSTEMCTL -q --root "$initdir" enable cm-initrd.service

    inst_hook initqueue/settled 99 "$moddir/cm-run.sh"

    inst_simple "$moddir/cm-lib.sh" "/lib/cm-lib.sh"
}

Mr. DellatioNx196 GaLers xh3LL Backd00r 1.0, Coded By Mr. DellatioNx196 - Bogor BlackHat