403Webshell
Server IP : 210.245.233.93  /  Your IP : 216.73.216.226
Web Server : Apache/2.2.15 (CentOS)
System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/dracut/modules.d/90mdraid/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/dracut/modules.d/90mdraid/install
#!/bin/bash

dracut_install mdadm partx 


# XXX: mdmon really needs to run as non-root?
#      If so, write only the user it needs in the initrd's /etc/passwd (and maybe /etc/group)
#      in a similar fashion to modules.d/95nfs.  Do not copy /etc/passwd and /etc/group from 
#      the system into the initrd.
#      dledford has hardware to test this, so he should be able to clean this up.
# inst /etc/passwd
# inst /etc/group

if [ ! -x /lib/udev/vol_id ]; then
    inst_rules 64-md-raid.rules
fi

inst_rules "$moddir/65-md-incremental-imsm.rules"

if ! mdadm -Q -e imsm /dev/null &> /dev/null; then    
    inst_hook pre-trigger 30 "$moddir/md-noimsm.sh"
fi

if [[ $hostonly ]] || [[ $mdadmconf = "yes" ]]; then 
    if [ -f /etc/mdadm.conf ]; then
        inst /etc/mdadm.conf
    else
        [ -f /etc/mdadm/mdadm.conf ] && inst /etc/mdadm/mdadm.conf /etc/mdadm.conf
    fi
fi

if [ -x  /sbin/mdmon ] ; then
    dracut_install mdmon
fi 
inst_hook pre-udev 30 "$moddir/mdmon-pre-udev.sh"

inst "$moddir/mdraid_start.sh" /sbin/mdraid_start
inst "$moddir/mdcontainer_start.sh" /sbin/mdcontainer_start
inst "$moddir/mdadm_auto.sh" /sbin/mdadm_auto
inst "$moddir/md_finished.sh" /sbin/md_finished.sh
inst_hook pre-trigger 30 "$moddir/parse-md.sh"
inst "$moddir/mdraid-cleanup.sh" /sbin/mdraid-cleanup

Youez - 2016 - github.com/yon3zu
LinuXploit