Hacked By AnonymousFox
�
ܨfF � � � d dl mZ d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZd dl m
Z
d dlmZm
Z
G d� d� � Z ee
�� � Zd � Zd
� Zdd�Zd
� Zd� ZdS )� )�print_function)�absolute_importN)�remount_proc)�
SysCtlConf�SYSCTL_CL_CONF_FILEc �0 � e Zd Zg d�ZdZdZd� Zd� Zd� ZdS )�
KernelVersion)�1r
�95� Tc �" � t j ddgt j t j �� � }|� � � \ }}|j dk r#t d� � t
j d� � |� d� � dk r||� d� � d � d � � d d d� �
� � � d
� � | _ t | j � � d S d| _ d S )N�unamez-r)�stdout�stderrr z?error: subprocess call error. Cant't get current kernel version� �lve����el�.F)
�
subprocess�Popen�PIPE�communicate�
returncode�print�sys�exit�find�split�strip�_system_kernel�
_cl_kernel)�self�p�out�errs �py/clsetuplib.py�__init__zKernelVersion.__init__# s� � ���g�t�_�Z�_�Z�_�]�]�]���]�]�_�_�
��c�
�L�A����T�U�U�U��H�Q�K�K�K��H�H�U�O�O�r�!�!�"%�)�)�E�"2�"2�1�"5�";�";�D�"A�"A�!�"D�S�b�S�"I�"O�"O�"Q�"Q�"W�"W�X[�"\�"\�D���$�%�&�&�&�&�&�#�D�O�O�O� c � � | j r3| j | j k r!t j � d� � rdS dS t
d� � t j d� � d S )Nz/proc/sys/fs/symlinkown_gidTFz1error: Feature is not supported on non CL kernel.r ) r"