403Webshell
Server IP : 167.99.254.82  /  Your IP : 216.73.216.76
Web Server : Apache
System : Linux host.techisquad.com 5.15.0-187-generic #197-Ubuntu SMP Fri Jul 17 19:17:01 UTC 2026 x86_64
User : pawluxera ( 1011)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/cloudinit/distros/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/cloudinit/distros/__pycache__/raspberry_pi_os.cpython-310.pyc
o

��i��@sDddlZddlmZmZddlmZe�e�ZGdd�dej	�Z	dS)�N)�net�subp)�debiancsReZdZdedededef�fdd�Zdd	d
�Zdef�fdd
�Zdd�Z�Z	S)�Distro�layout�model�variant�optionscsZt��||||�t�gd��t�gd��|�dd�t�d�r+t�gd��dSdS)N)�/usr/bin/raspi-config�nonint�update_labwc_keyboard)r
r�update_squeekboard�restartrzkeyboard-setup�udevadm)r�triggerz--subsystem-match=inputz--action=change)�super�
set_keymapr�manage_service�which)�selfrrrr	��	__class__��C/usr/lib/python3/dist-packages/cloudinit/distros/raspberry_pi_os.pyrs��
��zDistro.set_keymapN�LANGc
Csrz
t�ddd|�g�WdStjy8|�d�s/t�d|�t�ddd|�d�g�YdSt�d|�YdSw)Nr
r�do_change_localez.UTF-8zTrying to set locale %s.UTF-8zFailed to set locale %s)r�ProcessExecutionError�endswith�LOG�info�error)r�locale�out_fn�keynamerrr�apply_locale.s(�
�
�
�	�zDistro.apply_locale�returnc
snt�j|fi|��}|s|Sztjgd�d|id�WdStjy6}z
t�d|�WYd}~dSd}~ww)z�
        Add a user to the system using standard GNU tools

        This should be overridden on distros where useradd is not desirable or
        not available.

        Returns False if user already exists, otherwise True.
        )z/usr/bin/rename-userz-fz-s�	SUDO_USER)�
update_envzFailed to setup user: %sNFT)r�add_userrrrr )r�name�kwargs�result�errrr(Fs	�
���zDistro.add_usercCs:d}|j�|d�}t�d||�|st��St�d�dS)N�disable_fallback_netcfgTz%s value is: %sz}Skipping generation of fallback network config as per configuration. Rely on Raspberry Pi OS's default network configuration.)�_cfg�getr�debugr�generate_fallback_configr)r�keyr-rrrr1ds�zDistro.generate_fallback_config)Nr)
�__name__�
__module__�__qualname__�strrr$�boolr(r1�
__classcell__rrrrrs

r)
�logging�	cloudinitrr�cloudinit.distrosr�	getLoggerr3rrrrrr�<module>s



Youez - 2016 - github.com/yon3zu
LinuXploit