mirror of
https://github.com/teddysun/across.git
synced 2025-10-29 07:55:33 +08:00
Update InstallNET.sh
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user