WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: laptop-mode-tools.tce missing blockdev dependency  (Read 2584 times)

Offline wdef

  • Jr. Member
  • **
  • Posts: 59
laptop-mode-tools.tce missing blockdev dependency
« on: November 25, 2009, 12:17:31 AM »
Code: [Select]
# /etc/init.d/laptop-mode status
<snip>
Readahead states:
/usr/sbin/laptop_mode: line 951: blockdev: not found
/usr/sbin/laptop_mode: line 951: syntax error:  / 2
</snip>

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: laptop-mode-tools.tce missing blockdev dependency
« Reply #1 on: November 25, 2009, 05:51:11 AM »
I added util-linux-ng to the dep file though the tce repo is no longer maintained or available through the appbrowser in recent TC releases.  

This extension was pulled from tcz repo earlier:

http://forum.tinycorelinux.net/index.php?topic=3300.0

But as that came just at or before some general things were fixed in the repo, perhaps it can be revisited.
« Last Edit: November 25, 2009, 05:57:01 AM by Jason W »

Offline wdef

  • Jr. Member
  • **
  • Posts: 59
Re: laptop-mode-tools.tce missing blockdev dependency
« Reply #2 on: November 26, 2009, 10:50:00 AM »
Thanks Jason

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: laptop-mode-tools.tce missing blockdev dependency
« Reply #3 on: November 27, 2009, 01:15:59 AM »
Sorry for the lack of response, but I've been away for a week...

I looked at making the laptop-mode extension PPI compliant as there are a bunch of conf files under /etc and it is not possible to pass a ./configure switch to change this.

I asked the question on the laptop-mode list a couple of weeks back - let me prod them again.

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: laptop-mode-tools.tce missing blockdev dependency
« Reply #4 on: November 27, 2009, 05:37:40 AM »
Could the config files be staged somewhere in the extension under /usr/local and then copied to /etc by the startup script?

That is sometimes a necessary approach as some things are never going to be fully PPI compliant.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: laptop-mode-tools.tce missing blockdev dependency
« Reply #5 on: January 18, 2010, 10:11:29 PM »
I managed to move everything to /usr/local and get rid of the blockdev dep - I just need to test and decide how to treat the 101 conf files (most of which probably would never be changed...)