1 #include <lib/driver/misc_options.h>
7 #include <lib/base/init.h>
8 #include <lib/base/init_num.h>
9 #include <lib/base/eerror.h>
11 Misc_Options *Misc_Options::instance = 0;
13 Misc_Options::Misc_Options()
14 :m_12V_output_state(-1)
20 int Misc_Options::set_12V_output(int state)
22 if (state == m_12V_output_state)
24 int fd = open("/proc/stb/misc/12V_output", O_WRONLY);
27 eDebug("couldn't open /proc/stb/misc/12V_output");
36 write(fd, str, strlen(str));
37 m_12V_output_state = state;
42 Misc_Options *Misc_Options::getInstance()
47 //FIXME: correct "run/startlevel"
48 eAutoInitP0<Misc_Options> init_misc_options(eAutoInitNumbers::rc, "misc options");