Salut zip31
Linux Atlas 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u2 (2017-06-26) x86_64 GNU/Linux
Pour mon Os aucune ambiguité je suis sous Debian 9
Pour les deux point si je fais ifconfig -a j'ai effectivement les ":" après chaque interfaces!
mais si je fais un ifconfig -s là il n'y en a pas... ( découverte du "matin" ^^)
Stretch m'offre quelques bizarreries depuis 6 mois, par exemple pas de paquet net-tools après installation (netstat) chose jamais vu jusqu'à présent sur débian.
Un poste récent sur ce forum fait état d'un membre qui n'a pas ifconfig mais juste ip a , à en perdre son latin^^
Pour la partie shell c'est bien bash que j'utilise mais... pour outre-passer des erreurs le temps de bidouiller je remplace mon shebang par #!/bin/sh

exemple avec #!/bin/bash
1 2 3 4
| root@Atlas:/home/neo# ./connection.sh
./connection.sh: ligne 3: erreur de syntaxe dans une expression conditionnelle
./connection.sh: ligne 3: erreur de syntaxe près de « -o »
./connection.sh: ligne 3: `if [[ $USER != root -o $UID != 0 ]]' |
avec #!/bin/sh
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
root@Atlas:/home/neo# ./connection.sh
./connection.sh: 3: ./connection.sh: [[: not found
Killed old client process
Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/enp0s25/2c:44:fd:66:83:1c
Sending on LPF/enp0s25/2c:44:fd:66:83:1c
Sending on Socket/fallback
DHCPRELEASE on enp0s25 to 192.168.1.254 port 67
send_packet: Operation not permitted
dhclient.c:2733: Failed to send 300 byte long packet over fallback interface.
ifdown: unknown interface wlo1
Current MAC: 2c:44:fd:66:83:1c (Hewlett Packard)
Permanent MAC: 2c:44:fd:66:83:1c (Hewlett Packard)
New MAC: ac:ab:8d:87:12:cb (Lyngso Marine A/S)
Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/enp0s25/ac:ab:8d:87:12:cb
Sending on LPF/enp0s25/ac:ab:8d:87:12:cb
Sending on Socket/fallback
DHCPDISCOVER on enp0s25 to 255.255.255.255 port 67 interval 3
receive_packet failed on enp0s25: Network is down
DHCPDISCOVER on enp0s25 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on enp0s25 to 255.255.255.255 port 67 interval 9
DHCPREQUEST of 192.168.1.22 on enp0s25 to 255.255.255.255 port 67
DHCPOFFER of 192.168.1.22 from 192.168.1.254
DHCPACK of 192.168.1.22 from 192.168.1.254
bound to 192.168.1.22 -- renewal in 33108 seconds.
ifup: unknown interface wlo1 |
celà fait a peine 6 mois que je touche un terminal et tente de me build des distributions sur mesures, je demande indulgence au puriste
Partager