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 2 of 2 FirstFirst 12
Results 16 to 19 of 19

Thread: Plugin Development - Settings - Help needed

  1. #16
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,858
    Thanks
    239
    Thanked 1,673 Times in 1,318 Posts
    Quote Originally Posted by Daviemck View Post
    So I'd really like to know how to remove the setting all together.
    Just remove all references to it from your code (the fact that it still exists in settings isn't an issue at this point).
    Then stop enigma2 (init 4), edit /etc/enigma2/settings with a Unix text editor and remove the line, then restart enigma2 (init 3).

    Since it's only you who has the setting, don't over-complicate its removal by trying to write code to do it.
    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

  2. #17

    Title
    Member
    Join Date
    Mar 2016
    Posts
    38
    Thanks
    5
    Thanked 1 Time in 1 Post
    Quote Originally Posted by birdman View Post
    Just remove all references to it from your code (the fact that it still exists in settings isn't an issue at this point).
    Then stop enigma2 (init 4), edit /etc/enigma2/settings with a Unix text editor and remove the line, then restart enigma2 (init 3).

    Since it's only you who has the setting, don't over-complicate its removal by trying to write code to do it.
    Ahh, I've seen that init 4 command used elsewhere, but didn't know what that did. I will try this and let you know how I get on.

    Thanks

  3. #18
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,858
    Thanks
    239
    Thanked 1,673 Times in 1,318 Posts
    Quote Originally Posted by Daviemck View Post
    Ahh, I've seen that init 4 command used elsewhere, but didn't know what that did.
    It changes the run state of the init process (pid 1 - the one which started everything up).
    If you look in /etc/inittab you'll see that enigma2 is set to run in state 3 (and set to be restarted - which is why you can't just kill the process).
    So changing the run level to 4 gets the init process to stop it. Changing it back to 3 gets it started up again.
    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

  4. #19

    Title
    ViX Beta Tester
    Join Date
    Jan 2011
    Posts
    14,099
    Thanks
    3,389
    Thanked 4,102 Times in 3,198 Posts
    Quote Originally Posted by Daviemck View Post
    Ahh, I've seen that init 4 command used elsewhere, but didn't know what that did. I will try this and let you know how I get on.
    Code:
    https://en.wikipedia.org/wiki/Runlevel

Page 2 of 2 FirstFirst 12

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.