WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How can i auto load some tce package after booting  (Read 2154 times)

Offline xtxb

  • Newbie
  • *
  • Posts: 7
How can i auto load some tce package after booting
« on: September 07, 2017, 11:23:27 PM »
Hello:
      Just start touching tinycore,at present, I am working on a project that needs to run tinycore with the PXE service for some hosts, and when tinycore is booted, the hardware information of the system is sent to a separate server through the ‘curl' command. Therefore, I need to automatically load : curl.tcz , dmidecode.tcz and expect.tcz... after tinycore is booted.
      To do that,I refer to these two articles: http://wiki.tinycorelinux.net/wiki:remastering and http://forum.tinycorelinux.net/index.php/topic,20888.msg130500.html#msg130500,
      I did it:
            1.copy curl.tcz  and   and dmidecode.tcz expect.tcz ... into /opt/
            2.vi bootlocal.sh :
                  cd /opt
                  tce-load -i openssl.tcz openssh.tcz tcl.tcz curl.tcz dmidecode.tcz expect.tcz
            3.Packing tinycore.gz
            4.pxe load
      then, consle display:
           Don't run this as root.
           /opt/bootlocal.sh: line 6: expect : not found
   
       why?,please help me,thx
   

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: How can i auto load some tce package after booting
« Reply #1 on: September 08, 2017, 03:54:29 AM »
The only barriers that can stop you are the ones you create yourself.

Offline xtxb

  • Newbie
  • *
  • Posts: 7
Re: How can i auto load some tce package after booting
« Reply #2 on: September 08, 2017, 05:35:55 AM »
Hi curaga, thx for you guide! I have  a try.