Ticket #9865: mythshutdown_setwakeup.patch

File mythshutdown_setwakeup.patch, 816 bytes (added by Ian Clark <mrrooster@…>, 9 years ago)
  • mythtv/programs/mythshutdown/main.cpp

    diff --git a/mythtv/programs/mythshutdown/main.cpp b/mythtv/programs/mythshutdown/main.cpp
    old mode 100644
    new mode 100755
    index 65bf34b..1d2b4d4
    a b int main(int argc, char **argv) 
    747747    bool bStartup = false;
    748748    bool bShutdown = false;
    749749    bool bGetStatus = false;
    750     bool bSetWakeupTime = false;
    751750    QString sWakeupTime = "";
    752751    bool bSetScheduledWakeupTime = false;
    753752    bool bCheckAndShutdown = false;
    int main(int argc, char **argv) 
    845844        res = shutdown();
    846845    else if (bGetStatus)
    847846        res = getStatus(bWantRecStatus);
    848     else if (bSetWakeupTime)
     847    else if (!sWakeupTime.isEmpty())
    849848        res = setWakeupTime(sWakeupTime);
    850849    else if (bCheckAndShutdown)
    851850    {