X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fgrml%2Flsb-functions;h=42e89fb21fb04c4445211133021868721067a18a;hb=fcb1f5a4c443b8c2e2ba359170dd8bb88a899fdb;hp=8c9e0bb88e009c9a47cfe5ba92202944c06f27f7;hpb=aebae95cc3450cf995920a1b5563527923e5f4fc;p=grml-etc-core.git diff --git a/etc/grml/lsb-functions b/etc/grml/lsb-functions index 8c9e0bb..42e89fb 100644 --- a/etc/grml/lsb-functions +++ b/etc/grml/lsb-functions @@ -486,28 +486,6 @@ add_suffix() { return 0 } -# bool is_uml_sys() -# -# return 0 if the currently running system is User Mode Linux -# -# EXAMPLE: if is_uml_sys ; then ... -# -is_uml_sys() { - grep -qs 'UML' /proc/cpuinfo - return $? -} - -# bool is_vserver_sys() -# -# return 0 if the currently running system is a Linux VServer -# -# EXAMPLE: if is_vserver_sys ; then ... -# -is_vserver_sys() { - grep -qs '^s_context:[[:space:]]*[1-9]' /proc/self/status - return $? -} - # bool get_mount_fstab(path) # # return the parameters to pass to the mount command generated from fstab