public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] activating swap by udev event
@ 2010-07-01 13:49 SpaceCake
  2010-07-01 14:05 ` Nils Larsson
  2010-07-01 14:16 ` Neil Bothwick
  0 siblings, 2 replies; 20+ messages in thread
From: SpaceCake @ 2010-07-01 13:49 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 555 bytes --]

Hi,


I would like to increase the speed of my machine by putting some swap on a
fast pendrive. It is working manually by starting a script

swapon -s
swapon -p -1 /dev/sdb1
swapoff /dev/sda6
swapon -p -2 /dev/sda6
swapon -s

but, I would like to make it automatic by creating an udev rule, so when I
plug in that device the swap space is automatically activated and the
priority is changed. I've tried to google for a solution like this, but I
did not find. Maybe you already have some script at hand :) can you please
share this with me?

Thanks
Laszlo

[-- Attachment #2: Type: text/html, Size: 614 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2010-07-01 22:02 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-01 13:49 [gentoo-user] activating swap by udev event SpaceCake
2010-07-01 14:05 ` Nils Larsson
2010-07-01 14:16 ` Neil Bothwick
2010-07-01 15:17   ` SpaceCake
2010-07-01 15:26     ` Neil Bothwick
2010-07-01 15:44       ` SpaceCake
2010-07-01 15:49         ` Bill Longman
2010-07-01 15:59           ` SpaceCake
2010-07-01 18:59             ` Bill Longman
2010-07-01 19:21               ` Neil Bothwick
2010-07-01 16:06           ` Nils Larsson
2010-07-01 16:30             ` Albert Hopkins
2010-07-01 16:45               ` Nils Larsson
2010-07-01 16:49               ` SpaceCake
2010-07-01 19:46             ` Alan McKinnon
2010-07-01 21:50               ` Neil Bothwick
2010-07-01 21:59                 ` Alan McKinnon
2010-07-01 16:05         ` Alex Schuster
2010-07-01 16:09           ` Neil Bothwick
2010-07-01 16:08         ` Neil Bothwick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox