[maemo-developers] [maemo-developers] Adding swapon/off to Jakub's Load-Plugin applet - Patches
From: Armin M. Warda Armin.Warda at Web.DeDate: Fri Feb 24 00:00:50 EET 2006
- Previous message: [maemo-developers] Adding swapon/off to Jakub's Load-Plugin applet
- Next message: [maemo-developers] Adding swapon/off to Jakub's Load-Plugin applet - deb-package
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, attached you find three patches for Jakub's Load-Plugin applet. I applied these changes to the source code downloaded from: http://koti.welho.com/jpavelek/tmp/770/load-plugin_0.2.5-1.tar.gz My code-changes are split into three incremental steps to make it easier to understand (and improve ;-) them: - patch1 adds a 'swapfile' configuration string to the settings menu. - patch2 makes all configuration settings persistent via gconf. - patch3 adds the swapon/off menu-entry and logic. The Load-Plugin runs as 'user', swapon and swapoff need 'root', thus you have to add the following line to /etc/sudoers manually: user ALL = NOPASSWD: /sbin/swapon *, /sbin/swapoff * Hopefully my changes are picked up, cleaned up, tested, and make it into the next main release. (Btw., I dropped auto-discovery of active swaps, because I think there is no need to auto-activate a swap on reboot via /etc/rc2.d/ anymore, when swapon/off is just one click away...) Armin. P.S.: With 'dpkg-buildpackage -rfakeroot' - how can I make sure the produced shared object is 'stripped' before packaging occurs? -- --- May the Source be with you! Linux. --- --- http://www.arminwarda.mynetcologne.de/ --- secure eMail: http://www.gnupg.de/ --- -------------- next part -------------- A non-text attachment was scrubbed... Name: patch1 Type: text/x-diff Size: 1958 bytes Desc: not available Url : http://lists.maemo.org/pipermail/maemo-developers/attachments/20060223/e10e27ee/attachment.diff -------------- next part -------------- A non-text attachment was scrubbed... Name: patch3 Type: text/x-diff Size: 3836 bytes Desc: not available Url : http://lists.maemo.org/pipermail/maemo-developers/attachments/20060223/e10e27ee/attachment-0001.diff -------------- next part -------------- A non-text attachment was scrubbed... Name: patch2 Type: text/x-diff Size: 3379 bytes Desc: not available Url : http://lists.maemo.org/pipermail/maemo-developers/attachments/20060223/e10e27ee/attachment-0002.diff -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.maemo.org/pipermail/maemo-developers/attachments/20060223/e10e27ee/attachment.pgp
- Previous message: [maemo-developers] Adding swapon/off to Jakub's Load-Plugin applet
- Next message: [maemo-developers] Adding swapon/off to Jakub's Load-Plugin applet - deb-package
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]