mirror of
https://github.com/brain-hackers/brain-config.git
synced 2024-12-22 20:20:06 +09:00
Unnecessary sudo removed.
This commit is contained in:
parent
f8f0a5ef77
commit
339d467e7e
@ -608,7 +608,7 @@ do_spi() {
|
||||
fi
|
||||
|
||||
sed $BLACKLIST -i -e "s/^\(blacklist[[:space:]]*spi[-_]bcm2708\)/#\1/"
|
||||
sudo dtparam spi=on
|
||||
dtparam spi=on
|
||||
}
|
||||
|
||||
do_i2c() {
|
||||
@ -676,7 +676,7 @@ do_i2c() {
|
||||
if ! grep -q "^i2c[-_]dev" /etc/modules; then
|
||||
printf "i2c-dev\n" >> /etc/modules
|
||||
fi
|
||||
sudo dtparam i2c_arm=on
|
||||
dtparam i2c_arm=on
|
||||
modprobe i2c-dev
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user