You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
455 B
28 lines
455 B
6 years ago
|
#!/bin/bash
|
||
|
|
||
|
depend() {
|
||
|
pactree -u -d 1 $1 | tail -n +2
|
||
|
}
|
||
|
|
||
|
jdoc() {
|
||
|
mkdir -p './doc';
|
||
|
javadoc -d './doc' *.java
|
||
|
}
|
||
|
|
||
|
jr() {
|
||
|
mkdir -p './out';
|
||
|
javac -d './out' "$1.java";
|
||
|
java -cp './out' "$1"
|
||
|
}
|
||
|
|
||
|
raspbian() {
|
||
|
sudo systemctl start avahi-daemon.service
|
||
|
if ! ip a show usb0 | grep -q 'inet6'; then
|
||
|
sudo dhcpcd usb0
|
||
|
fi
|
||
|
ssh -6 pi@$(avahi-resolve-host-name raspberrypi.local | awk '{ print $2 }')%usb0
|
||
|
sudo systemctl stop avahi-daemon.service
|
||
|
}
|
||
|
|
||
|
"$@"
|