Print this page
3788 /etc/bootrc is defunct and should be removed

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/prtconf/prtconf.c
          +++ new/usr/src/cmd/prtconf/prtconf.c
↓ open down ↓ 333 lines elided ↑ open up ↑
 334  334          }
 335  335  
 336  336          if (opts.o_target) {
 337  337                  prtconf_devinfo();
 338  338                  return (0);
 339  339          }
 340  340  
 341  341          ret = sysinfo(SI_HW_PROVIDER, hw_provider, sizeof (hw_provider));
 342  342          /*
 343  343           * If 0 bytes are returned (the system returns '1', for the \0),
 344      -         * we're probably on x86, and there has been no si-hw-provider
 345      -         * set in /etc/bootrc, default to Oracle.
      344 +         * we're probably on x86, default to Oracle.
 346  345           */
 347  346          if (ret <= 1) {
 348  347                  (void) strncpy(hw_provider, "Oracle Corporation",
 349  348                      sizeof (hw_provider));
 350  349          }
 351  350          (void) printf("System Configuration:  %s  %s\n", hw_provider,
 352  351              opts.o_uts.machine);
 353  352  
 354  353          pagesize = sysconf(_SC_PAGESIZE);
 355  354          npages = sysconf(_SC_PHYS_PAGES);
↓ open down ↓ 30 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX