projects
/
kernel-cn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
9b2edd5
)
- small typo for then
author
Dinko Korunic
<kreator@carnet.hr>
Thu, 28 Apr 2011 12:49:40 +0000
(14:49 +0200)
committer
Dinko Korunic
<kreator@carnet.hr>
Thu, 28 Apr 2011 12:49:40 +0000
(14:49 +0200)
debian/postinst
patch
|
blob
|
history
diff --git
a/debian/postinst
b/debian/postinst
index
7e0d953
..
4483849
100755
(executable)
--- a/
debian/postinst
+++ b/
debian/postinst
@@
-89,7
+89,7
@@
echo "."
# detect existing Grub2 installation
GRUB2="no"
# detect existing Grub2 installation
GRUB2="no"
-if [ -e /boot/grub/grub.cfg ];
+if [ -e /boot/grub/grub.cfg ]; then
echo "CN: Detected GRUB2 installation, will try to use it."
GRUB2="yes"
if [ -e /boot/grub/menu.lst ]; then
echo "CN: Detected GRUB2 installation, will try to use it."
GRUB2="yes"
if [ -e /boot/grub/menu.lst ]; then
@@
-172,13
+172,13
@@
if [ "x$GRUB2" = "xno" ]; then
fi
fi
if [ ! -e "$menu_file" ]; then
fi
fi
if [ ! -e "$menu_file" ]; then
- yes | /usr/sbin/update-grub >/dev/null 2>&1 || true
+ yes | update-grub >/dev/null 2>&1 || true
else
else
- /usr/sbin/update-grub >/dev/null 2>&1 || true
+ update-grub >/dev/null 2>&1 || true
fi
else
# Grub2 part
fi
else
# Grub2 part
- /usr/sbin/update-grub >/dev/null 2>&1 || true
+ update-grub >/dev/null 2>&1 || true
fi
echo -n " grub2"
fi
echo -n " grub2"
@@
-289,7
+289,7
@@
if [ "x$GRUB2" = "xno" ]; then
"s;^# kopt=\(.*\)root=[^[:space:]]*\(.*\);# kopt=\1root=$root_device\2;g" \
"$menu_file" || true
fi
"s;^# kopt=\(.*\)root=[^[:space:]]*\(.*\);# kopt=\1root=$root_device\2;g" \
"$menu_file" || true
fi
-/usr/sbin/update-grub >/dev/null 2>&1 || true
+update-grub >/dev/null 2>&1 || true
echo -n " grub6"
# fix possible wrong params in menu.lst
echo -n " grub6"
# fix possible wrong params in menu.lst