cdsteinkuehler / beaglebone-universal-io

Device tree overlay and support scripts for using most available hardware I/O on the BeagleBone without editing dts files or rebuilding the kernel
GNU General Public License v2.0
127 stars 54 forks source link

Preserve $HOME in cape setup script #14

Closed zultron closed 9 years ago

zultron commented 9 years ago

See machinekit/machinekit#328

Using su clobbers the $HOME variable, which breaks X authentication and perhaps location of machinekit.ini as well.

Here, su isn't necessary, since sudo already obtains the elevated privileges needed to write to bone_capemgr.*/slots.