403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/cloudinit/config/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/cloudinit/config/__pycache__/cc_raspberry_pi.cpython-314.pyc
+
��i�!��a�R&t!0t^RIt^RIt^RIHt^RIHt^RIHt^RI	H
t
^RIHt^RI
Ht]P!]4tRtR	tR
tRRR
RRR/tRtRtRtRtRtRRRR.R]R]./t]^kRRltRRltR R!ltR"R#ltR$R%lt R#)'�N)�Union)�subp)�Cloud)�Config)�
MetaSchema)�PER_INSTANCE�rpi�
interfaces�enable_usb_gadget�spi�do_spi�i2c�do_i2c�onewire�
do_onewire�serial�do_serial_cons�do_serial_hwz/usr/bin/rpi-usb-gadgetz(Rebooting to apply config.txt changes...�id�cc_raspberry_pi�distroszraspberry-pi-os�	frequency�activate_by_schema_keysc�0�V^8�dQhR\R\/#)��enable�return��bool)�formats"�B/usr/lib/python3/dist-packages/cloudinit/config/cc_raspberry_pi.py�__annotate__r"(s�� � �� �$� �c��\PRV4\PP	\
4'g\P
R\
4R#\P!\
V'dRMRR.R^R7R# \Pd"p\P
R	T4R
p?R#R
p?ii;i)zsEnable / Disable Raspberry Pi USB gadget mode when
the script is present.

Returns True when a reboot is required.
zEnable rpi-usb-gadget mode: %sz#rpi-usb-gadget script not found: %sF�on�offz-f)�capture�timeoutTz&Failed to configure rpi-usb-gadget: %sN)	�LOG�debug�os�path�exists�RPI_USB_GADGET_SCRIPT�errorr�ProcessExecutionError)r�es& r!�configure_usb_gadgetr2(s����I�I�.��7�
�7�7�>�>�/�0�0��	�	�7�9N�O����	�	�%���E��

���	
� ���%�%���	�	�:�A�>����s�B	�:
B	�	B?�B:�:B?c�$�V^8�dQhR\/#)rrr)r s"r!r"r"Ks����4�r#c�p�\P!.RO4R# \PdR#i;i)�/usr/bin/raspi-configTF)r5�nonint�	is_pifive)rr0�r#r!r7r7Ks/����	�	�B�C����%�%����s��5�5c�R�V^8�dQhR\\\3,R\/#)r�cfgr)r�dictr)r s"r!r"r"Ss'��K�K�E�$��*�$5�K�$�Kr#c��RRRllpRpRp\V\4'dV!VR4pV!VR4pM\V\4'dTp\4'gV'dRp\P!RR\
\
V'd^M^4.4\P!RR\\
T'd^M^4.4R# \Pd"p\PR	T4R
p?R#R
p?ii;i \Pd"p\PRT4R
p?R#R
p?ii;i)
a=Configure the serial (UART) interface on Raspberry Pi.

Depending on the configuration, this enables or disables
the serial console and the hardware UART by invoking
`raspi-config` non-interactively.

Args:
    cfg: Either a boolean or a dictionary:
        - If a bool, enables or disables the serial
          console and hardware UART together.
        - If a dict, may contain the keys `console`
          and `hardware` with boolean values controlling
          each individually.

Returns:
    True if the configuration was applied successfully,
    False otherwise.
Fc�0�V^8�dQhR\R\/#)r�cfg_dict�name)r;�str)r s"r!r"�0configure_serial_interface.<locals>.__annotate__gs��
�
��
�S�
r#c��VPW4p\V\4'g\P	R\
VV4V#V#)z"Invalid value for %s.serial.%s: %s)�get�
isinstancerr)�warning�RPI_INTERFACES_KEY)r>r?�default�vals&&& r!�get_bool_field�2configure_serial_interface.<locals>.get_bool_fieldgsA���l�l�4�)���#�t�$�$��K�K�4�"���	
��N��
r#�console�hardwareTr5r6z&Failed to configure serial console: %sNz'Failed to configure serial hardware: %s)F)rDr;rr7r�RASPI_CONFIG_SERIAL_CONS_FNr@r0r)r/�RASPI_CONFIG_SERIAL_HW_FN)r:rI�enable_console�	enable_hwr1s&    r!�configure_serial_interfacerQSs
��(
��N��I��#�t���'��Y�7��"�3�
�3�	�	�C��	�	����;�;�>��	���	�	�'��+���A�Q�/�	
�	
���	�	�'��)���A��*�	
�	
����%�%���	�	�:�A�>������%�%���	�	�;�Q�?����s0�)1C�1D�D�#C?�?D�D=�D8�8D=c�<�V^8�dQhR\R\R\/#)r�ifacerr)r@r)r s"r!r"r"�s!����s��D��T�r#c�0�V\P49gQRV24h\P!RR\V,\V'd^M^4.4R# \Pd"p\
P
RY4Rp?R#Rp?ii;i)a�Enable or disable a supported hardware interface.

Supported interfaces are defined in `SUPPORTED_INTERFACES` and
currently include SPI, I2C, and 1-Wire. The function applies
the change using `raspi-config` in non-interactive mode.

Args:
    iface: The interface name (e.g. `"spi"` or `"i2c"`).
    enable: True to enable the interface, False to disable it.

Returns:
    True if the interface configuration succeeded, False otherwise.
zUnsupported interface: r5r6TzFailed to configure %s: %sNF)�SUPPORTED_INTERFACES�keysrr@r0r)r/)rSrr1s&& r!�configure_interfacerW�s���	�%�*�*�,�,�)�	 ���(�)�,�
��	�	�'��$�U�+���A�Q�'�	
�	
����%�%���	�	�.��9����s�8A�B�4B�Bc
�L�V^8�dQhR\R\R\R\RR/#)rr?r:�cloud�argsrN)r@rr�list)r s"r!r"r"�s6��T�T��T�6�T�%�T�t�T��Tr#c�4�\V9dR#\V\,\4'g)\P	R\V\,4R#V\,'g\PR\4R#RpV\,EF>pV\8XdRV\,V,p\V\4'dV\V4,pM\R\24hK`V\8XEd�\V\,V,\4'g1\P	R\V\,V,4R#V\,V,'g\PRV4R#\V\,V,P44pVF�pV\P49d)V\8wd\P	R\V4KDV\,V,V,pV\8XdN\V\\34'g\P	R\VV4MV\V4,pK�\V\4'dV\!W�4,pK�\P	R\VV4K�	EK(\P	RV4EKA	VRJd;VP"P%R	R
\&R7p	\(P(!V	4R#R#)NzInvalid value for %s: %szEmpty value for %s. Skipping...FzInvalid value for zInvalid key for %s: %szInvalid value for %s.%s: %szUnsupported key: %sT�reboot�now)�mode�delay�message)�RPI_BASE_KEYrDr;r)rEr*�ENABLE_USB_GADGET_KEYrr2�
ValueErrorrFr[rVrU�SERIAL_INTERFACErQrW�distro�shutdown_command�
REBOOT_MSGr)
r?r:rYrZ�want_reboot�keyr�subkeys�subkey�cmds
&&&&      r!�handlern�sg���3���
��L�)�4�
0�
0����&�����	
�
	�
��
�
��	�	�3�\�B���K��<� � ���'�'���&�s�+�F��&�$�'�'��3�F�;�;�� �#5�6K�5L�!M�N�N��
�&�
&��c�,�/��4�d�;�;����.� ���%�c�*��
���&�s�+�+��	�	�;�S�A���3�|�,�S�1�6�6�8�9�G�"���"6�";�";�"=�=��"2�2��K�K�0�2D�f����\�*�3�/��7���-�-�%�f�t�T�l�;�;����9�.�"�"�	�$�'A�&�'I�I����f�d�+�+��#6�v�#F�F�K��K�K�5�*���	�7"�D
�K�K�-�s�3��w!�z�d���l�l�+�+����,�
��
	
�	�	�#��r#c�@�V^8�dQh/^\9d
\;R&#)r�meta)�__conditional_annotations__r)r s"r!r"r"s����2��j��3r#)"rq�loggingr+�typingr�	cloudinitr�cloudinit.cloudr�cloudinit.configr�cloudinit.config.schemar�cloudinit.settingsr�	getLogger�__name__r)rbrFrcrUrerMrNr.rhrpr2r7rQrWrnr")rqs@r!�<module>r{s������	���!�#�.�+�
����!����!��+��	�8�	�8�
�|���
��.��*��1��
7�
�	�
�
�!�"�����~�	��� �F�K�\�DTr#

Youez - 2016 - github.com/yon3zu
LinuXploit