WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline ulfr

  • Jr. Member
  • **
  • Posts: 83
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

Online Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 6004
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

  • Jr. Member
  • **
  • Posts: 83
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

Online Rich

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 6004
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

  • Jr. Member
  • **
  • Posts: 83
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: 1703
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 ;)