projects
/
bbb-usb.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
update config, add cheats to amusbss, bind to intr in ammusb
[bbb-usb.git]
/
misc
/
perms.sh
1
#!/bin/ksh
2
3
EUID
=
`id -g`
4
if
[[
$EUID
-ne
0
]];
then
5
echo
"run me as root!"
6
exit
1
7
elif
[[
${#}
-ne
2
]];
then
8
echo
"SYNTAX: perms.sh <user>"
9
exit
2
10
fi
11
12
set -e
13
usermod
-G
wsrc
$1
14
chmod
-R
g
+
rwx
/
usr
/
src
15
16
echo
"permissions set -- relogin"
17