From 6324c612f47f7139e0fe48d6b69e257883b4ffc5 Mon Sep 17 00:00:00 2001 From: Gwenhael Le moine Date: Sat, 2 Jan 2010 11:00:38 +0700 Subject: [PATCH] >> rc.local Signed-off-by: Gwenhael Le moine --- a/laptop-mode-tools/laptop-mode-tools.SlackBuild | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/a/laptop-mode-tools/laptop-mode-tools.SlackBuild b/a/laptop-mode-tools/laptop-mode-tools.SlackBuild index 56b08e26..993a3c5b 100755 --- a/a/laptop-mode-tools/laptop-mode-tools.SlackBuild +++ b/a/laptop-mode-tools/laptop-mode-tools.SlackBuild @@ -86,6 +86,11 @@ config() { } config etc/rc.d/rc.laptop-mode.new + +grep -q "rc\.laptop-mode" /etc/rc.d/rc.local || cat <> /etc/rc.d/rc.local + +[ -x /etc/rc.d/rc.laptop-mode ] && /etc/rc.d/rc.laptop-mode start +EORCLOCAL EOF cat < install/slack-desc