Subversion Repositories livecd

Rev

Rev 91 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 91 Rev 108
Line 302... Line 302...
302
    echo
302
    echo
303
    [ "$key" != "y" ] && exit_now 0
303
    [ "$key" != "y" ] && exit_now 0
304
fi
304
fi
305
 
305
 
306
 
306
 
307
### format $SWAP_PART
307
### format $SWAP_PART (don't format swap, if already formated)
308
### -----------------------------------------------------------
308
### -----------------------------------------------------------
309
if [ $SWAP_PART ]; then
309
if [ $SWAP_PART ]; then
310
    echo "Make swap on $SWAP_PART ..."
310
    echo "Make swap on $SWAP_PART ..."
-
 
311
    swapoff -a >/dev/null 2>&1
-
 
312
    swapon $SWAP_PART 2>/dev/null
-
 
313
    if [ "$?" != "0" ]; then
-
 
314
	echo "Format $SWAP_PART as swap." 
311
    mkswap $SWAP_PART
315
	mkswap $SWAP_PART
-
 
316
    fi
312
    echo
317
    echo
313
fi
318
fi
314
 
319
 
315
 
320
 
316
### format $INSTALL_PART
321
### format $INSTALL_PART