2 * (c) 2004, Jérôme DUVAL for Haiku
3 * released under the MIT licence.
7 #include <drivers/driver_settings.h>
15 main(int argc
, char **argv
)
17 const char *optionName
= B_SAFEMODE_SAFE_MODE
;
18 bool realString
= false;
19 char buffer
[B_FILE_NAME_LENGTH
];
20 size_t size
= sizeof(buffer
);
24 for (i
= 1; i
< argc
; i
++) {
25 if (!strcmp(argv
[i
], "-s"))
31 status
= _kern_get_safemode_option(optionName
, buffer
, &size
);
37 if (!strncasecmp(buffer
, "true", size
)
38 || !strncasecmp(buffer
, "yes", size
)
39 || !strncasecmp(buffer
, "on", size
)
40 || !strncasecmp(buffer
, "enabled", size
)) {