Changeset 5ba8e3b in freewrt


Ignore:
Timestamp:
Jun 29, 2007, 8:58:00 PM (18 years ago)
Author:
Thorsten Glaser <tg@…>
Children:
b4ac44c
Parents:
99b974e
Message:
  • provide a list of changes (“fwcf status”)
  • free(3) memory correctly

git-svn-id: svn://www.freewrt.org/trunk/freewrt@3039 afb5a338-a214-0410-bd46-81f09a774fd1

Location:
package/fwwif/extra
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • package/fwwif/extra/commit.ecpp

    r99b974e r5ba8e3b  
    6363<p class="blkbeg">The “fwcf commit” utility returned the following output:</p>
    6464<pre class="blkmid">
    65 %               reply.sout() << text;
     65%               reply.sout() << text ? text : "(null)";
    6666</pre><p class="blkend">The exit code was <$ WEXITSTATUS(i) $>.</p>
    6767<p>Go <a href="javascript:back();">back</a> or to the <a href="/">index</a>.</p>
    6868%       } else {
     69%               int i;
     70%               char *changes;
     71%
    6972%               do {
    7073%                       checkpoint = arc4random();      /* authorisation */
    7174%               } while (!checkpoint);
     75%               changes = c_exec("/sbin/fwcf status", &i);
     76%               if (changes) {
     77<p class="blkbeg">The following files have been modified:</p>
     78<pre class="blkmid"><$ changes $></pre>
     79<p class="blkend">Do you really want to commit all these changes
     80%                       free(changes);
     81%               } else {
    7282<h1>Commit to flash</h1>
    73 <p>Do you really want to commit all changes to <tt>/etc</tt> into
    74  flash to retain them over system reboots?</p>
     83<p>Do you really want to commit all changes to <tt>/etc</tt>
     84%               }
     85 into flash to retain them over system reboots?</p>
    7586<table width="100%">
    7687 <tr>
  • package/fwwif/extra/version.ecpp

    r99b974e r5ba8e3b  
    4141</%cpp>
    4242<p class="blkbeg">The “fwwif version” utility returned the following output:</p>
    43 <pre class="blkmid"><$ text $></pre><p
     43<pre class="blkmid"><$ text ? text : "(null)" $></pre><p
    4444 class="blkend">The exit code was <$ i > 0 ? WEXITSTATUS(i) : i $>.</p>
    4545<p>Go <a href="javascript:back();">back</a> or to the <a href="/">index</a>.</p>
     46%       if (text)
     47%               free(text);
    4648<& footer>
Note: See TracChangeset for help on using the changeset viewer.