Create detect_container() and detect_vm() functions

These functions replace rc_sys so that we can detect containers and vms
separately.

Also, we copy file_regex() to rc-misc.c and open it to all operating
systems.
This commit is contained in:
William Hubbs
2015-12-04 18:02:43 -06:00
parent 83cd7145e3
commit 8addd7913a
2 changed files with 162 additions and 1 deletions

View File

@@ -87,4 +87,8 @@ int is_writable(const char *);
#define service_stop(service) exec_service(service, "stop");
int parse_mode(mode_t *, char *);
const char *detect_prefix(void);
const char *get_systype(void);
const char *detect_container(void);
const char *detect_vm(void);
#endif