mirror of
https://github.com/teddysun/across.git
synced 2025-01-31 12:19:35 +08:00
Update InstallNET.sh
This commit is contained in:
parent
ea448f17ff
commit
e0fef8561f
@ -255,7 +255,7 @@ function diskType(){
|
|||||||
|
|
||||||
function getGrub(){
|
function getGrub(){
|
||||||
Boot="${1:-/boot}"
|
Boot="${1:-/boot}"
|
||||||
folder=`find "$Boot" -type d -name "grub*" 2>/dev/null |tail -n1`
|
folder=`find "$Boot" -type d -name "grub*" 2>/dev/null | sort | tail -n1`
|
||||||
[ -n "$folder" ] || return
|
[ -n "$folder" ] || return
|
||||||
fileName=`ls -1 "$folder" 2>/dev/null |grep '^grub.conf$\|^grub.cfg$'`
|
fileName=`ls -1 "$folder" 2>/dev/null |grep '^grub.conf$\|^grub.cfg$'`
|
||||||
if [ -z "$fileName" ]; then
|
if [ -z "$fileName" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user