OpenWRT: how to apply changes of uci system file












1














I am using UCI command to set timezone:



uci set system.@system[0].zonename="America/Los_Angeles"


the change reflects immediately after I run:



uci commit


But the changes are not reflected on system time. And after reboot I see the changes that are committed in /etc/config/system file.



Is there any way I can apply changes without reboot?



I did not find /etc/init.d/system file as any other, to restart/start/stop and apply changes without reboot.



Also FYI, I don't have /etc/config/timezone file.










share|improve this question





























    1














    I am using UCI command to set timezone:



    uci set system.@system[0].zonename="America/Los_Angeles"


    the change reflects immediately after I run:



    uci commit


    But the changes are not reflected on system time. And after reboot I see the changes that are committed in /etc/config/system file.



    Is there any way I can apply changes without reboot?



    I did not find /etc/init.d/system file as any other, to restart/start/stop and apply changes without reboot.



    Also FYI, I don't have /etc/config/timezone file.










    share|improve this question



























      1












      1








      1







      I am using UCI command to set timezone:



      uci set system.@system[0].zonename="America/Los_Angeles"


      the change reflects immediately after I run:



      uci commit


      But the changes are not reflected on system time. And after reboot I see the changes that are committed in /etc/config/system file.



      Is there any way I can apply changes without reboot?



      I did not find /etc/init.d/system file as any other, to restart/start/stop and apply changes without reboot.



      Also FYI, I don't have /etc/config/timezone file.










      share|improve this question















      I am using UCI command to set timezone:



      uci set system.@system[0].zonename="America/Los_Angeles"


      the change reflects immediately after I run:



      uci commit


      But the changes are not reflected on system time. And after reboot I see the changes that are committed in /etc/config/system file.



      Is there any way I can apply changes without reboot?



      I did not find /etc/init.d/system file as any other, to restart/start/stop and apply changes without reboot.



      Also FYI, I don't have /etc/config/timezone file.







      configuration openwrt timezone






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 21 '16 at 7:50









      countermode

      5,21841943




      5,21841943










      asked Sep 21 '16 at 7:43









      Anmol Porwal

      62




      62






















          3 Answers
          3






          active

          oldest

          votes


















          0














          The timezone you use, must be listed in /etc/TZ




          1. make sure /tmp/TZ exists

          2. check if /etc/TZ exists. If not, copy the TZ file from /tmp to /etc


          I am quite confident, that /etc/config/timezone is not even needed.






          share|improve this answer





























            0














            Luci have fatals bugs.
            You need to manually commit unsaved changes.



            nvram show // to verify the changes
            nvram commit





            share|improve this answer























            • Hello sir what bugs are you talking about? Thanks
              – justinnoor.io
              Oct 18 '18 at 3:08





















            0














            find your TZ string in Time Zones



            enter image description here



            $ cd /tmp
            $ echo PST8PDT,M3.2.0,M11.1.0> TZ





            share|improve this answer























              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "106"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f311264%2fopenwrt-how-to-apply-changes-of-uci-system-file%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              0














              The timezone you use, must be listed in /etc/TZ




              1. make sure /tmp/TZ exists

              2. check if /etc/TZ exists. If not, copy the TZ file from /tmp to /etc


              I am quite confident, that /etc/config/timezone is not even needed.






              share|improve this answer


























                0














                The timezone you use, must be listed in /etc/TZ




                1. make sure /tmp/TZ exists

                2. check if /etc/TZ exists. If not, copy the TZ file from /tmp to /etc


                I am quite confident, that /etc/config/timezone is not even needed.






                share|improve this answer
























                  0












                  0








                  0






                  The timezone you use, must be listed in /etc/TZ




                  1. make sure /tmp/TZ exists

                  2. check if /etc/TZ exists. If not, copy the TZ file from /tmp to /etc


                  I am quite confident, that /etc/config/timezone is not even needed.






                  share|improve this answer












                  The timezone you use, must be listed in /etc/TZ




                  1. make sure /tmp/TZ exists

                  2. check if /etc/TZ exists. If not, copy the TZ file from /tmp to /etc


                  I am quite confident, that /etc/config/timezone is not even needed.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jun 27 '17 at 14:45









                  GABIKA6

                  1213




                  1213

























                      0














                      Luci have fatals bugs.
                      You need to manually commit unsaved changes.



                      nvram show // to verify the changes
                      nvram commit





                      share|improve this answer























                      • Hello sir what bugs are you talking about? Thanks
                        – justinnoor.io
                        Oct 18 '18 at 3:08


















                      0














                      Luci have fatals bugs.
                      You need to manually commit unsaved changes.



                      nvram show // to verify the changes
                      nvram commit





                      share|improve this answer























                      • Hello sir what bugs are you talking about? Thanks
                        – justinnoor.io
                        Oct 18 '18 at 3:08
















                      0












                      0








                      0






                      Luci have fatals bugs.
                      You need to manually commit unsaved changes.



                      nvram show // to verify the changes
                      nvram commit





                      share|improve this answer














                      Luci have fatals bugs.
                      You need to manually commit unsaved changes.



                      nvram show // to verify the changes
                      nvram commit






                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited Jul 16 '17 at 14:40









                      Jeff Schaller

                      38.8k1053125




                      38.8k1053125










                      answered Jul 16 '17 at 10:09









                      Petar Zh.

                      1




                      1












                      • Hello sir what bugs are you talking about? Thanks
                        – justinnoor.io
                        Oct 18 '18 at 3:08




















                      • Hello sir what bugs are you talking about? Thanks
                        – justinnoor.io
                        Oct 18 '18 at 3:08


















                      Hello sir what bugs are you talking about? Thanks
                      – justinnoor.io
                      Oct 18 '18 at 3:08






                      Hello sir what bugs are you talking about? Thanks
                      – justinnoor.io
                      Oct 18 '18 at 3:08













                      0














                      find your TZ string in Time Zones



                      enter image description here



                      $ cd /tmp
                      $ echo PST8PDT,M3.2.0,M11.1.0> TZ





                      share|improve this answer




























                        0














                        find your TZ string in Time Zones



                        enter image description here



                        $ cd /tmp
                        $ echo PST8PDT,M3.2.0,M11.1.0> TZ





                        share|improve this answer


























                          0












                          0








                          0






                          find your TZ string in Time Zones



                          enter image description here



                          $ cd /tmp
                          $ echo PST8PDT,M3.2.0,M11.1.0> TZ





                          share|improve this answer














                          find your TZ string in Time Zones



                          enter image description here



                          $ cd /tmp
                          $ echo PST8PDT,M3.2.0,M11.1.0> TZ






                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Jun 23 '18 at 6:53









                          slm

                          247k66511677




                          247k66511677










                          answered Jun 23 '18 at 5:48









                          user9869800

                          1




                          1






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Unix & Linux Stack Exchange!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.





                              Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                              Please pay close attention to the following guidance:


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f311264%2fopenwrt-how-to-apply-changes-of-uci-system-file%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Morgemoulin

                              Scott Moir

                              Souastre