Hello Guest, if you are reading this it means you have not registered yet. Please take a second, Click here to register, and in a few simple steps you will be able to enjoy our community and use our OpenViX support section.
Page 1 of 2 12 LastLast
Results 1 to 15 of 28

Thread: Symlink on DCC

  1. #1
    sataday's Avatar
    Title
    Senior Member
    Join Date
    Aug 2014
    Location
    Pandora, Alpha Centauri.
    Posts
    266
    Thanks
    118
    Thanked 33 Times in 25 Posts

    Symlink on DCC

    I have setup 2 different symlinks up on DCC. One to take me directly to plugins, and the other to take me directly to my oscam files (etc/tuxbox/config).
    Although I have them both ticked in backup manager, after updating image, only the plugin one is there. It doesn't save the oscam files one.
    This is not a recent problem. I have had it on every update for a while now
    Any ideas why?
    Thanks.
    VU+Solo2 (45E - 45W)

  2. #2
    abu baniaz's Avatar
    Title
    Moderator
    Join Date
    Sep 2010
    Location
    East London
    Posts
    23,338
    Thanks
    6,422
    Thanked 9,146 Times in 6,224 Posts
    Symlinks are not saved in a settings backup. They never have been. I suppose you can create a script to create them which would be saved.

    Having said that, an update does not remove links. A flash does.

  3. #3
    sataday's Avatar
    Title
    Senior Member
    Join Date
    Aug 2014
    Location
    Pandora, Alpha Centauri.
    Posts
    266
    Thanks
    118
    Thanked 33 Times in 25 Posts
    Sorry, when I said update I meant Flashing a new image. You say that symlinks are not saved yet the one I created for plugins does save.
    VU+Solo2 (45E - 45W)

  4. #4
    abu baniaz's Avatar
    Title
    Moderator
    Join Date
    Sep 2010
    Location
    East London
    Posts
    23,338
    Thanks
    6,422
    Thanked 9,146 Times in 6,224 Posts
    You'll have to show me how you are doing so

    I have these symlinks.

    ln -s /usr/lib/enigma2/python/Plugins /_Plugins
    ln -s /usr/lib/enigma2/python/Plugins/Extensions /_Extensions
    ln -s /usr/lib/enigma2/python/Plugins/SystemPlugins/AutoBouquetsMaker /_ABM
    ln -s /usr/lib/enigma2/python/Plugins/SystemPlugins/AutoBouquetsMaker/providers /_ABM_providers
    ln -s /usr/lib/enigma2/python /_Python
    ln -s /usr/share/enigma2/Simple_Ten_Eighty /_Simple1080
    ln -s /usr/share/enigma2 /_Skins

  5. #5
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,769
    Thanks
    235
    Thanked 1,656 Times in 1,305 Posts
    Quote Originally Posted by abu baniaz View Post
    Symlinks are not saved in a settings backup. They never have been.
    Yes they are.

    Code:
    root@et8000:/media/usb/backup# tar tvf openvix-dev-5.3.008.007-20191102-2200.tar.gz | grep local
    lrwxrwxrwx 0/0         0 2019-08-11 21:56:33 usr/local -> /media/hdd/GMLbits/local
    lrwxrwxrwx 0/0         0 2019-08-11 21:56:33 opt/local -> /usr/local
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  6. #6
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,276 Times in 1,089 Posts
    ….does this mean that a settings restore will bring them back as symlinks?

    I guess it should.

  7. #7
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,769
    Thanks
    235
    Thanked 1,656 Times in 1,305 Posts
    Quote Originally Posted by ccs View Post
    ….does this mean that a settings restore will bring them back as symlinks?

    I guess it should.
    Hmmm....should be...

    The restore command (as in "initiate a restore of a backup" - enigma2/lib/python/Plugins/SystemPlugins/SoftwareManager/BackupRestore.py) appears to be made by:

    Code:
    ["tar -xzvf " + self.path + "/" + self.sel + " -C /", "killall -9 enigma2"]
    so it restores everything (self.path + "/" + self.sel is the full-path to a backup file).

    A restore at Flash time is run by the the Restore Wizard (vix-core/src/RestoreWizard.py) and it runs:

    Code:
    "tar -xzvf " + self.fullbackupfilename + " -C /"
    so should be the same...
    Last edited by birdman; 03-11-19 at 19:38.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  8. The Following User Says Thank You to birdman For This Useful Post:

    ccs (03-11-19)

  9. #8
    abu baniaz's Avatar
    Title
    Moderator
    Join Date
    Sep 2010
    Location
    East London
    Posts
    23,338
    Thanks
    6,422
    Thanked 9,146 Times in 6,224 Posts
    Are you saying a symlink is tarballed?

  10. #9
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,769
    Thanks
    235
    Thanked 1,656 Times in 1,305 Posts
    Quote Originally Posted by abu baniaz View Post
    Are you saying a symlink is tarballed?
    Yes. No reason why it shouldn't be.
    It can handle hard-links too.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  11. #10
    sataday's Avatar
    Title
    Senior Member
    Join Date
    Aug 2014
    Location
    Pandora, Alpha Centauri.
    Posts
    266
    Thanks
    118
    Thanked 33 Times in 25 Posts
    Thanks for all replies, but I still don't understand why the "Plugins" symlink saves but the "oscam files" one doesn't.
    VU+Solo2 (45E - 45W)

  12. #11
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,276 Times in 1,089 Posts
    Is the file/directory the symlink is pointing to also included in backupmanager?

  13. #12
    abu baniaz's Avatar
    Title
    Moderator
    Join Date
    Sep 2010
    Location
    East London
    Posts
    23,338
    Thanks
    6,422
    Thanked 9,146 Times in 6,224 Posts
    oscam config files are always saved. same for other cams

  14. #13
    ccs's Avatar
    Title
    ViX Beta Tester
    Join Date
    Sep 2014
    Posts
    5,836
    Thanks
    554
    Thanked 1,276 Times in 1,089 Posts
    Quote Originally Posted by abu baniaz View Post
    oscam config files are always saved. same for other cams
    Although it's still possible to de-select them, whether by accident or design.

  15. #14
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,769
    Thanks
    235
    Thanked 1,656 Times in 1,305 Posts
    I've just done a flash+restore.
    Both of my added symlinks were restored.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  16. #15
    sataday's Avatar
    Title
    Senior Member
    Join Date
    Aug 2014
    Location
    Pandora, Alpha Centauri.
    Posts
    266
    Thanks
    118
    Thanked 33 Times in 25 Posts
    Quote Originally Posted by birdman View Post
    I've just done a flash+restore.
    Both of my added symlinks were restored.
    Was one of them "etc/tuxbox/config" ?
    VU+Solo2 (45E - 45W)

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.