WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: what script file actually creates the symlinks for the tcz  (Read 2540 times)

Offline ulfr

  • Full Member
  • ***
  • Posts: 140
what script file actually creates the symlinks for the tcz
« on: November 16, 2018, 03:13:54 PM »


     hi all 

     if someone could answer this i would appreciate it     

     if i am correct 

     tce-load mounts the tcz 

     but what script file actually creates the symlinks for the tcz

     thanks

     ulfr

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: what script file actually creates the symlinks for the tcz
« Reply #1 on: November 16, 2018, 05:31:35 PM »
Hi ulfr
The  tce-load  script probably does it using the  busybox cp  command:
Code: [Select]
tc@box:~$ busybox cp --help
BusyBox v1.19.3 (2011-10-30 01:47:29 UTC) multi-call binary.

Usage: cp [OPTIONS] SOURCE DEST

Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY

        -a      Same as -dpR
        -R,-r   Recurse
        -d,-P   Preserve symlinks (default if -R)
        -L      Follow all symlinks
        -H      Follow symlinks on command line
        -p      Preserve file attributes if possible
        -f      Overwrite
        -i      Prompt before overwrite
        -l,-s   Create (sym)links

tc@box:~$
Look for a  cp  command that includes the  -s  option.

Offline ulfr

  • Full Member
  • ***
  • Posts: 140
Re: what script file actually creates the symlinks for the tcz
« Reply #2 on: November 16, 2018, 06:42:32 PM »

    thanks a lot  Rich

    will do 

    ulfr

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: what script file actually creates the symlinks for the tcz
« Reply #3 on: November 16, 2018, 07:06:14 PM »
Hi ulfr
Search for the routine that begins with:
Code: [Select]
install(){

Offline ulfr

  • Full Member
  • ***
  • Posts: 140
Re: what script file actually creates the symlinks for the tcz
« Reply #4 on: November 16, 2018, 07:25:38 PM »
 
   thanks Rich
 
   yes i have found what you suggested 

   so it looks like tce-load does the whole job

   beautiful code 

   much appreciated

   ulfr

 

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: what script file actually creates the symlinks for the tcz
« Reply #5 on: November 17, 2018, 08:19:32 AM »
which tce-load
/usr/bin/tce-load

just for reference
Download a copy and keep it handy: Core book ;)