Lines 1112-1117
runscript(int argc, char **argv)
Link Here
|
1112 |
exit(EXIT_FAILURE); |
1112 |
exit(EXIT_FAILURE); |
1113 |
} |
1113 |
} |
1114 |
|
1114 |
|
|
|
1115 |
if (!exists(RC_SVCDIR "/softlevel")) { |
1116 |
fprintf(stderr, "OpenRC is not running. Running the script may result in unexpected\n" |
1117 |
"behavior. If you'd like to force doing so, please run:\n" |
1118 |
"\ttouch " RC_SVCDIR "/softlevel\n"); |
1119 |
exit(EXIT_FAILURE); |
1120 |
} |
1121 |
|
1115 |
if (stat(argv[1], &stbuf) != 0) { |
1122 |
if (stat(argv[1], &stbuf) != 0) { |
1116 |
fprintf(stderr, "runscript `%s': %s\n", |
1123 |
fprintf(stderr, "runscript `%s': %s\n", |
1117 |
argv[1], strerror(errno)); |
1124 |
argv[1], strerror(errno)); |
1118 |
- |
|
|