-
Committer:
c-lobrano
-
Date:
2015-09-30 13:44:52 UTC
-
Revision ID:
c.lobrano@gmail.com-20150930134452-ppoyd4v36vjisnih
Rework of hw-unassign for symlinks and other fixes
cmd_hwassign.go:
- Inverted hw assignement and symlink creation. The device is supposed to be already assigned to the snap, before creating the symlink.
errors.go:
- added custom errors for symlinks.go
hwaccess.go:
- reworked RemoveHWAccess to manage symlinks
- add some wrapper functions to make things simpler
hwaccess_test.go:
- add tests for new functions