Your IP : 3.144.16.40
3
�<�e� � @ s$ d dl Z d dlZG dd� de�ZdS )� Nc @ sP e Zd ZdZdddddddd d
ddd
gZdd� Zedd� �Zedd� �Zej dd� �Zedd� �Z
e
j dd� �Z
edd� �Zedd� �Zej dd� �Zedd� �Z
e
j dd� �Z
ed d!� �Zej d"d!� �Zed#d$� �Zej d%d$� �Zed&d'� �Zej d(d'� �Zed)d*� �Zej d+d*� �Zed,d-� �Zej d.d-� �Zed/d0� �Zej d1d0� �Zd2S )3�Unitz
Unit description.
�_name�_type�_enabled�_replace�_drop�_devices�_devices_udev_regex�_cpuinfo_regex�_uname_regex�_script_pre�_script_post�_optionsc C s� || _ |jd| j �| _|jdd�dk| _|jdd �dk| _|jd
d �| _| jd k rftjdt| j��| _|jdd
�| _ |jdd �| _
|jdd �| _|jdd �| _|jdd �| _
|jdd �| _tj|�| _d S )N�type�enabledT�True�true� �1�replaceF�dropz\b\s*[,;]\s*�devices�*�devices_udev_regex�
cpuinfo_regex�uname_regex�
script_pre�script_post)Tr r r r )Tr r r r )r �popr r r r �re�split�strr r r
r r r
�collections�OrderedDictr )�self�name�config� r'