remove ceph code
[stor4nfv.git] / src / ceph / src / ceph-detect-init / ceph_detect_init / debian / __init__.py
diff --git a/src/ceph/src/ceph-detect-init/ceph_detect_init/debian/__init__.py b/src/ceph/src/ceph-detect-init/ceph_detect_init/debian/__init__.py
deleted file mode 100644 (file)
index 94217cd..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-import os
-import subprocess
-
-distro = None
-release = None
-codename = None
-
-
-def choose_init():
-    """Select a init system
-
-    Returns the name of a init system (upstart, sysvinit ...).
-    """
-    # yes, this is heuristics
-    if os.path.isdir('/run/systemd/system'):
-        return 'systemd'
-    if not subprocess.call('. /lib/lsb/init-functions ; init_is_upstart',
-                           shell=True):
-        return 'upstart'
-    if os.path.isfile('/sbin/init') and not os.path.islink('/sbin/init'):
-        return 'sysvinit'