14 Mayıs 2012 Pazartesi

Suse 12.1 pcmanfm doesn't work error and add a boot script

After moving my usb flash disk suse to my backup disk, I encountered a strange error. My pcmanfm had not worked anymore. After searching, I found that Suse didn't work swap partition at boot. Therefore, I want to write a boot script and add it to among boot scripts. I found how I could do this that address systemd and using the after.local in open suse 12.1.This can help for anyone who need this kind of solution. My simple bash script is here.

DISK=`fdisk -l | grep swap| cut -d " " -f 1`
if [ DISK != " " ]
then
 swapon $DISK
fi

Hiç yorum yok:

Yorum Gönder