Unnecessary sudo removed.

This commit is contained in:
spl 2016-04-28 15:40:42 +01:00 committed by Serge Schneider
parent f8f0a5ef77
commit 339d467e7e

View File

@ -608,7 +608,7 @@ do_spi() {
fi fi
sed $BLACKLIST -i -e "s/^\(blacklist[[:space:]]*spi[-_]bcm2708\)/#\1/" sed $BLACKLIST -i -e "s/^\(blacklist[[:space:]]*spi[-_]bcm2708\)/#\1/"
sudo dtparam spi=on dtparam spi=on
} }
do_i2c() { do_i2c() {
@ -676,7 +676,7 @@ do_i2c() {
if ! grep -q "^i2c[-_]dev" /etc/modules; then if ! grep -q "^i2c[-_]dev" /etc/modules; then
printf "i2c-dev\n" >> /etc/modules printf "i2c-dev\n" >> /etc/modules
fi fi
sudo dtparam i2c_arm=on dtparam i2c_arm=on
modprobe i2c-dev modprobe i2c-dev
} }