⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 02_multipath

📁 Linux Multipath Source Code
💻
字号:
#!/bin/sh## store the multipath tool in the initrd# hotplug & udev will take care of calling it when appropriate# this tool is statically linked against klibc : no additional libs#cp /sbin/multipath $INITRDDIR/sbincp /sbin/devmap_name $INITRDDIR/sbincp /sbin/kpartx $INITRDDIR/sbin## feed the dependencies too# scsi_id is dynamicaly linked, so store the libs too#cp /sbin/scsi_id $INITRDDIR/sbincp /bin/mountpoint $INITRDDIR/binPROGS="/sbin/scsi_id /bin/mountpoint"LIBS=`ldd $PROGS | grep -v linux-gate.so | sort -u | \awk '{print $3}'` for i in $LIBSdo	mkdir -p `dirname $INITRDDIR/$i`	cp $i $INITRDDIR/$idone## config file ?#if [ -f /etc/multipath.conf ]then	cp /etc/multipath.conf $INITRDDIR/etc/fi

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -