Advertisement
Eliel_Sec

2 - ativar placa usb clonezilla se necessario

Aug 30th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.40 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #Script para ativar a placa usb
  4.  
  5. echo -e "Ativando a Placa USB"
  6. sleep 2
  7.  
  8. #conferindo se foi reconhecida.
  9. lsusb | grep -i Ethernet && lsmod | grep dm9601 ;
  10.  
  11. #se foi reconhecida ative a placa e pegue um ip.
  12. #o nome da placa esta junto com o modulo, em duvidas procure por tudo que
  13. #começar com enp0s em seu sistema com find / -name "enp0s*" -type d
  14.  
  15. ifconfig enp0s29f2u1 up && dhclient
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement