Line 258... |
Line 258... |
258 |
if [ "$?" != "0" ]; then
|
258 |
if [ "$?" != "0" ]; then
|
259 |
echo "Swap partition $SWAP_PART not found! (see 'fdisk -l')"
|
259 |
echo "Swap partition $SWAP_PART not found! (see 'fdisk -l')"
|
260 |
echo "Or you have to reboot first to make the partition table active"; echo
|
260 |
echo "Or you have to reboot first to make the partition table active"; echo
|
261 |
exit_now 1
|
261 |
exit_now 1
|
262 |
fi
|
262 |
fi
|
263 |
fdisk -l | grep "Linux swap$" | cut -d" " -f1 | grep -q "^${SWAP_PART}$"
|
263 |
fdisk -l | grep "Linux swap" | cut -d" " -f1 | grep -q "^${SWAP_PART}$"
|
264 |
if [ "$?" != "0" ]; then
|
264 |
if [ "$?" != "0" ]; then
|
265 |
echo "Partition $SWAP_PART is not a Linux swap partition! (see 'fdisk -l')"
|
265 |
echo "Partition $SWAP_PART is not a Linux swap partition! (see 'fdisk -l')"
|
266 |
echo "Use fdisk and/or qtparted to create a Linux Swap partition!"
|
266 |
echo "Use fdisk and/or qtparted to create a Linux Swap partition!"
|
267 |
echo "You have to reboot first to make the partition table active"; echo
|
267 |
echo "You have to reboot first to make the partition table active"; echo
|
268 |
exit_now 1
|
268 |
exit_now 1
|