Tiny Core Linux

General TC => General TC Talk => Topic started by: ulfr on November 16, 2018, 03:13:54 PM

Title: what script file actually creates the symlinks for the tcz
Post by: ulfr 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
Title: Re: what script file actually creates the symlinks for the tcz
Post by: Rich 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.
Title: Re: what script file actually creates the symlinks for the tcz
Post by: ulfr on November 16, 2018, 06:42:32 PM

    thanks a lot  Rich

    will do 

    ulfr
Title: Re: what script file actually creates the symlinks for the tcz
Post by: Rich on November 16, 2018, 07:06:14 PM
Hi ulfr
Search for the routine that begins with:
Code: [Select]
install(){
Title: Re: what script file actually creates the symlinks for the tcz
Post by: ulfr 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

 
Title: Re: what script file actually creates the symlinks for the tcz
Post by: Misalf on November 17, 2018, 08:19:32 AM
which tce-load
/usr/bin/tce-load

just for reference