Adding wifi scripts; general cleanup

This commit is contained in:
DarkFeather
2017-10-25 23:50:52 -05:00
parent e4afa2e8e5
commit ce9d50ab0c
7 changed files with 58 additions and 14 deletions

View File

@@ -1,25 +1,29 @@
LIST=arch-update close-guest fix-sound log-guest open-guest restart-service silent-guardian revproxy simple-web
LIST=arch-update close-guest fix-sound log-guest open-guest restart-service silent-guardian revproxy simple-web wifi wifiboot
LOCATION=/root/bin
INSTALLER != curl -s https://aninix.net/foundation/installer-test.bash | /bin/bash
PERMISSION=0700
compile:
compile: ${LIST} ./wifi.service
@echo Nothing to compile.
install: compile
install: compile
mkdir -p ${LOCATION};
mkdir -p /var/log/aninix/
for i in ${LIST}; do cp ./$$i ${LOCATION}; done
cp ./wifi.service /usr/lib/systemd/system/wifi.service
make checkperm
reverse:
for i in ${LIST}; do cp ${LOCATION}/$$i .; done
cp /usr/lib/systemd/system/wifi.service .
test: ${LIST}
for i in ${LIST}; do [ "$$(grep -c '#/bin/bash' $$i)" -ne 1 ]; done
checkperm:
for i in ${LIST}; do chown root:root ${LOCATION}/$$i; chmod ${PERMISSION} ${LOCATION}/$$i; done
chown root: /usr/lib/systemd/system/wifi.service;
chmod 0644 /usr/lib/systemd/system/wifi.service
clean:
@echo Nothing to do.