unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* how restart networking after ifconfig down?
@ 2019-05-05  6:11 znavko
  0 siblings, 0 replies; only message in thread
From: znavko @ 2019-05-05  6:11 UTC (permalink / raw)
  To: help-guix

I wrote bash-script checking external ip and disabling network interface if it is a real ip, not vpn.
But I do not know why networking does not work after down and up the interface?

# ifconfig wlp2s0 down
# ifconfig wp2s0 up

# herd restart networking
Service networking is not running.
Service networking could not be started.

# rfkill list
0: phy0: Wireless LAN
 Soft blocked: no
 Hard blocked: no

# herd status
...
Stopped:
 - networking
 - term-auto
 - user-homes
 - wpa-supplicant
But my own connection script works:
# cat 1
#!/bin/sh

#connect to wi-fi through wpa_supplicant

#herd stop wpa-supplicant
rfkill unblock wifi
wpa_supplicant -B -i wlp2s0 -c /etc/wpa_supplicant/wpa_supplicant.conf
sleep 2
dhclient -v wlp2s0
#herd restart networking
Where to get error and how to solve this? Why herd does not start networking?

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-05-05  6:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-05  6:11 how restart networking after ifconfig down? znavko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).