farmradiohangar / fconf Goto Github PK
View Code? Open in Web Editor NEWvoxbox network configuration
License: MIT License
voxbox network configuration
License: MIT License
create systemd network unit file after successful start of the wpa_supplicant service.
Now if wpa_supplicant service fails to start, --enable fails but systemd network file is left hanging.
command for setting wi-fi client is wifi-client
, and filename wireless.conf
.
The final config filename shoud be [email protected], e.g. [email protected]
[email protected]
is created instead of updating voice-channel@{IMSI}.json
It's impossible to --enable after this, as it detects the wvdial file.
Which makes me think that updating config and running --enable will fail too ..
$ fconf wifi-client wlan0 --disable
disable wpa_supplicant@wlan0 ...done without error
stop wpa_supplicant@wlan0 ...done without error
restart systemd-networkd ...done without error
ERROR: running ip addr flush dev wlan0 exit status 255
run ip flush
before restart systemd-networkd
Flags: 19
should be Flags: ["up", "broadcast", "multicast"]
const (
FlagUp Flags = 1 << iota // interface is up
FlagBroadcast // interface supports broadcast access capability
FlagLoopback // interface is a loopback interface
FlagPointToPoint // interface belongs to a point-to-point link
FlagMulticast // interface supports multicast access capability
)
var flagNames = []string{
"up",
"broadcast",
"loopback",
"pointtopoint",
"multicast",
}
fconfExec [ '4g-ndis', 'eth1', '--remove' ]
stdout: removing /etc/systemd/network/fconf-4g-eth1.network ... error
stderr: remove /etc/systemd/network/fconf-4g-eth1.network: no such file or directory
fconf process exited with code 1
The error is caused by --disable. Don't run --disable if interface is not enabled.
I suppose it's trying to find the interface name from file with old json structure
fconf w --disable
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x189cc]
goroutine 1 [running]:
panic(0x1ab488, 0x10526008)
/usr/local/Cellar/go/1.7.3/libexec/src/runtime/panic.go:500 +0x33c
github.com/urfave/cli.HandleAction.func1(0x105336f8)
/Volumes/gernest/personal/gopath/src/github.com/urfave/cli/app.go:478 +0x290
panic(0x1ab488, 0x10526008)
/usr/local/Cellar/go/1.7.3/libexec/src/runtime/panic.go:458 +0x454
main.DisableWifi(0x1058c140, 0x0, 0x0)
/Volumes/gernest/personal/gopath/src/github.com/FarmRadioHangar/fconf/wifi.go:164 +0x4c
main.WifiClientCMD(0x1058c140, 0x0, 0x0)
/Volumes/gernest/personal/gopath/src/github.com/FarmRadioHangar/fconf/wifi.go:25 +0x94
reflect.Value.call(0x1a20f0, 0x1e3094, 0x13, 0x1c721a, 0x4, 0x105336b8, 0x1, 0x1, 0x0, 0x0, ...)
/usr/local/Cellar/go/1.7.3/libexec/src/reflect/value.go:434 +0xd68
reflect.Value.Call(0x1a20f0, 0x1e3094, 0x13, 0x105336b8, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/Cellar/go/1.7.3/libexec/src/reflect/value.go:302 +0x84
github.com/urfave/cli.HandleAction(0x1a20f0, 0x1e3094, 0x1058c140, 0x0, 0x0)
/Volumes/gernest/personal/gopath/src/github.com/urfave/cli/app.go:487 +0x1d0
github.com/urfave/cli.Command.Run(0x1c8b60, 0xb, 0x0, 0x0, 0x10526250, 0x1, 0x1, 0x1ce794, 0x23, 0x0, ...)
/Volumes/gernest/personal/gopath/src/github.com/urfave/cli/command.go:191 +0xc10
github.com/urfave/cli.(*App).Run(0x1057c0c0, 0x1050a300, 0x3, 0x4, 0x0, 0x0)
/Volumes/gernest/personal/gopath/src/github.com/urfave/cli/app.go:240 +0x798
main.main()
/Volumes/gernest/personal/gopath/src/github.com/FarmRadioHangar/fconf/main.go:164 +0x13d8
e.g. systemctl start create_ap@wlan0
instead of systemctl start create_ap
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.