Mini Shell

Direktori : /lib/dracut/modules.d/45ifcfg/
Upload File :
Current File : //lib/dracut/modules.d/45ifcfg/module-setup.sh

#!/usr/bin/bash

# called by dracut
check() {
    [[ -d $dracutsysrootdir/etc/sysconfig/network-scripts ]] && return 0
    return 255
}

# called by dracut
depends() {
    echo "network"
    return 0
}

# called by dracut
install() {
    inst_binary awk
    inst_hook pre-pivot 85 "$moddir/write-ifcfg.sh"
}

Zerion Mini Shell 1.0