Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
neurobin committed Sep 9, 2015
1 parent 97b0538 commit 5481a9f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
9 changes: 5 additions & 4 deletions install
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash
BASEDIR="$(dirname "$BASH_SOURCE")"
cd "$BASEDIR"
sudo -s <<EOF
sudo -u $USER make
if (( $EUID != 0 )); then
printf "\n-----Sorry! Run with root privilege\n\n"
exit 1
fi
make
make install
modprobe mt7630e
modprobe mt76xx
EOF

7 changes: 4 additions & 3 deletions test
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#!/bin/bash
BASEDIR="$(dirname "$BASH_SOURCE")"
cd "$BASEDIR"
sudo -s <<EOF
if (( $EUID != 0 )); then
printf "\n-----Sorry! Run with root privilege\n\n"
exit 1
fi
[ -f rt2x00/mt7630e.ko ] && [ -f btloader/mt76xx.ko ] || sudo -u $USER make
cp -v firmware/*/* /lib/firmware/
modprobe rt2800pci
insmod ./rt2x00/mt7630e.ko
insmod ./btloader/mt76xx.ko
modprobe -r rt2800pci
EOF

6 changes: 5 additions & 1 deletion uninstall
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash
BASEDIR="$(dirname "$BASH_SOURCE")"
cd "$BASEDIR"
sudo -s make uninstall
if (( $EUID != 0 )); then
printf "\n-----Sorry! Run with root privilege\n\n"
exit 1
fi
make uninstall

0 comments on commit 5481a9f

Please sign in to comment.