~ubuntu-branches/ubuntu/gutsy/nut/gutsy

« back to all changes in this revision

Viewing changes to drivers/skel.c

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Quette
  • Date: 2007-01-16 10:42:36 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20070116104236-il549l8x1wmogl3b
Tags: 2.0.5-1
* New upstream release (Closes: #406045, #380304, #399741)
* debian/rules:
  - replaces CHANGES by ChangeLog
  - replace the dummycons installation by dummy-ups
  - integrate the --with-htmlpath option
* debian/nut-cgi.docs: created to install data/html/README
* debian/nut.init: LSB compliance update
* debian/control: add lsb-base (>= 3.0-6) to Depends for LSB compliance

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 
15
15
void upsdrv_initinfo(void)
16
16
{
17
 
        /* try to detect the UPS here - call fatal() if it fails */
 
17
        /* try to detect the UPS here - call fatal_with_errno() if it fails */
18
18
 
19
19
        dstate_setinfo("driver.version.internal", "%s", DRV_VERSION);
20
20
        /* dstate_setinfo("ups.mfr", "skel driver"); */
41
41
         *      return;
42
42
         * }
43
43
         */
44
 
         */
45
44
 
46
45
        /* dstate_setinfo("var.name", ""); */
47
46
 
48
47
        /* if (ioctl(upsfd, TIOCMGET, &flags)) {
49
 
         *      upslog(LOG_ERR, "TIOCMGET");
 
48
         *      upslog_with_errno(LOG_ERR, "TIOCMGET");
50
49
         *      dstate_datastale();
51
50
         *      return;
52
51
         * }
138
137
         *
139
138
         * to show the value of cable:
140
139
         *
141
 
         *      if ((cable == getval("cable")))
 
140
         *      if ((cable = getval("cable")))
142
141
         *              printf("cable is set to %s\n", cable);
143
142
         *      else
144
143
         *              printf("cable is not set!\n");