Giter Club home page Giter Club logo

fconf's People

Contributors

gernest avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

deko96

fconf's Issues

change execution order in "wifi-client --enable"

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.

wifi-client disable fails

$ 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

Expand Flags property of list-interface result into an array of flagNames

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",
}

--remove not working properly

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.

crashes when something is unexpected

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.