From 4e2f90413655382a8a1a72b8f30423f3abcf5085 Mon Sep 17 00:00:00 2001 From: Tomas M Date: Tue, 8 Jan 2013 06:43:22 -0900 Subject: [PATCH] better compatibility with ubuntu --- bootfiles/bootinst.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bootfiles/bootinst.sh b/bootfiles/bootinst.sh index 5cc9f48..15abdcc 100755 --- a/bootfiles/bootinst.sh +++ b/bootfiles/bootinst.sh @@ -37,7 +37,9 @@ if [ "$DEV" != "$PART" ]; then ( fdisk -l "$DEV" | fgrep "*" | fgrep "$DEV" | cut -d " " -f 1 \ | sed -r "s:.*[^0-9]::" | xargs -I '{}' echo -ne "a\n{}\n" - echo -ne "a\n$PART\nw\n" + echo a + echo $PART + echo w ) | fdisk $DEV >/dev/null 2>&1 fi