|
干脆用变量算了
- set BT=BOOT
- if [ -d /boot ];then
- set BT=boot
- elif [ -d /Boot ];then
- set BT=Boot
- fi
- set EF=EFI
- if [ -d /efi ];then
- set EF=efi
- fi
- set EFB=BOOT
- if [ -d /$EF/boot ];then
- set EFB=boot
- elif [ -d /$EF/Boot ];then
- set EFB=Boot
- fi
- set EFMSB=microsoft/boot
- if [ -d /$EF/MICROSOFT/BOOT ];then
- set EFMSB=MICROSOFT/BOOT
- elif [ -d /$EF/Microsoft/Boot ];then
- set EFMSB=Microsoft/Boot
- fi
- set BCD=BCD
- if [ -f /$EF/$EFMSB/bcd ];then
- set BCD=bcd
- fi
复制代码 |
|