403Webshell
Server IP : 156.238.232.47  /  Your IP : 216.73.216.150
Web Server : nginx/1.25.3
System : Linux C202504152095410 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : www ( 1000)
PHP Version : 8.3.25
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python2.7/site-packages/tuned/plugins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/site-packages/tuned/plugins/plugin_usb.pyc
�
��\c@snddlmZddlTddlZddlmZddlZejj	�Z
dejfd��YZdS(i(tbase(t*i����N(tcommandst	USBPlugincBs}eZdZd�Zd�Zed��Zd�Zd�Zd�Z	e
dde�d	��Ze
d�ed
��ZRS(s7
	Plugin for tuning various options of USB subsystem.
	cCsmt|_t�|_t�|_x9|jjd�jdd�D]}|jj|j	�q@Wt
�|_dS(NtusbtDEVTYPEt
usb_device(tTruet_devices_supportedtsett
_free_devicest_assigned_devicest_hardware_inventorytget_devicestmatch_propertytaddtsys_nameRt_cmd(tselftdevice((s</usr/lib/python2.7/site-packages/tuned/plugins/plugin_usb.pyt
_init_devicess	%cCs&g|D]}|jjd|�^qS(NR(Rt
get_device(Rtdevicestx((s</usr/lib/python2.7/site-packages/tuned/plugins/plugin_usb.pyt_get_device_objectsscCsidd6S(Ntautosuspend(tNone(R((s</usr/lib/python2.7/site-packages/tuned/plugins/plugin_usb.pyt_get_config_optionsscCst|_t|_dS(N(Rt_has_static_tuningtFalset_has_dynamic_tuning(Rtinstance((s</usr/lib/python2.7/site-packages/tuned/plugins/plugin_usb.pyt_instance_init!s	cCsdS(N((RR((s</usr/lib/python2.7/site-packages/tuned/plugins/plugin_usb.pyt_instance_cleanup%scCsd|S(Ns)/sys/bus/usb/devices/%s/power/autosuspend((RR((s</usr/lib/python2.7/site-packages/tuned/plugins/plugin_usb.pyt_autosuspend_sysfile(sRt
per_devicecCs`|j|�}|dkrdS|r+dnd}|s\|j|�}|jj||�n|S(Nt1t0(t_option_boolRR"Rt
write_to_file(RtvalueRtsimtenabletvaltsys_file((s</usr/lib/python2.7/site-packages/tuned/plugins/plugin_usb.pyt_set_autosuspend+scCs+|j|�}|jj|d|�j�S(Ntno_error(R"Rt	read_filetstrip(RRtignore_missingR,((s</usr/lib/python2.7/site-packages/tuned/plugins/plugin_usb.pyt_get_autosuspend7s(t__name__t
__module__t__doc__RRtclassmethodRR R!R"tcommand_setRR-tcommand_getRR2(((s</usr/lib/python2.7/site-packages/tuned/plugins/plugin_usb.pyR	s	
					(
tRt
decoratorst
tuned.logsttunedttuned.utils.commandsRtglobtlogstgettlogtPluginR(((s</usr/lib/python2.7/site-packages/tuned/plugins/plugin_usb.pyt<module>s


Youez - 2016 - github.com/yon3zu
LinuXploit