2017-01-29 14:27:03 -06:00
|
|
|
LIST=arch-update clean-exim clean-exim-input close-guest fix-sound log-guest open-guest restart-service silent-guardian proxy
|
2016-11-09 22:25:00 -06:00
|
|
|
LOCATION=/root/bin
|
|
|
|
PERMISSION=0700
|
|
|
|
compile:
|
|
|
|
@echo Nothing to compile.
|
|
|
|
|
|
|
|
install: compile
|
2016-11-18 11:10:05 -06:00
|
|
|
for i in ${LIST}; do cp ./$$i ${LOCATION}; done
|
2016-11-09 22:25:00 -06:00
|
|
|
make checkperm
|
|
|
|
|
|
|
|
reverse:
|
|
|
|
for i in ${LIST}; do cp ${LOCATION}/$$i .; done
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@echo Nothing to do.
|