Esempio n. 1
0
void KDMSessionsWidget::load()
{
    readSD(sdlcombo, "All", config->group("X-:*-Core"));

    readSD(sdrcombo, "Root", config->group("X-*-Core"));

    KConfigGroup configGrp = config->group("Shutdown");
    restart_lined->setUrl(configGrp.readEntry("RebootCmd", REBOOT_CMD));
    shutdown_lined->setUrl(configGrp.readEntry("HaltCmd", HALT_CMD));

    bm_combo->setCurrentId(configGrp.readEntry("BootManager", "None"));
}
Esempio n. 2
0
void TDMSessionsWidget::load()
{
  config->setGroup("X-:*-Core");
  readSD(sdlcombo, "All");
  tsbox->setChecked(config->readBoolEntry("TerminateServer", false));


  config->setGroup("X-*-Core");
  readSD(sdrcombo, "Root");

  config->setGroup("Shutdown");
  restart_lined->setURL(config->readEntry("RebootCmd", "/sbin/reboot"));
#if defined(__OpenBSD__)
  shutdown_lined->setURL(config->readEntry("HaltCmd", "/sbin/halt -p"));
#else
  shutdown_lined->setURL(config->readEntry("HaltCmd", "/sbin/poweroff"));
#endif

  bm_combo->setCurrentId(config->readEntry("BootManager", "None"));
}
Esempio n. 3
0
DRESULT disk_readp (
                    BYTE* buff,		/* Pointer to the destination object */
                    DWORD sector,	/* Sector number (LBA) */
                    UINT offset,	/* Offset in the sector */
                    UINT count		/* Byte count (bit15:destination) */
                    )
{
	DRESULT res;

    if(readSD(buff, sector, offset, count) == 0){
        // Failed
        res = RES_ERROR;
    } else {
        // Worked
        res = RES_OK;
    }

	return res;
}