From 8addd7913a743b75ef3854ab4a96fea81cc5245d Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Fri, 4 Dec 2015 18:02:43 -0600 Subject: 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. --- src/includes/rc-misc.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/includes') diff --git a/src/includes/rc-misc.h b/src/includes/rc-misc.h index 3cce8d02..e0565b6b 100644 --- a/src/includes/rc-misc.h +++ b/src/includes/rc-misc.h @@ -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 -- cgit v1.2.3