WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline wdef

  • Jr. Member
  • **
  • Posts: 59
laptop-mode-tools.tce missing blockdev dependency
« on: November 25, 2009, 03: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

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: laptop-mode-tools.tce missing blockdev dependency
« Reply #1 on: November 25, 2009, 08: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, 08: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, 01:50:00 PM »
Thanks Jason

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: laptop-mode-tools.tce missing blockdev dependency
« Reply #3 on: November 27, 2009, 04: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

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: laptop-mode-tools.tce missing blockdev dependency
« Reply #4 on: November 27, 2009, 08: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.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: laptop-mode-tools.tce missing blockdev dependency
« Reply #5 on: January 19, 2010, 01:11:29 AM »
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...)