mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2025-01-05 12:00:47 -05:00
add information fetch scripts
This commit is contained in:
parent
bb2b23bec3
commit
2bc3eb4857
16
fetch-modules
Executable file
16
fetch-modules
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -o errexit
|
||||||
|
|
||||||
|
user=root
|
||||||
|
|
||||||
|
. hosts.sh
|
||||||
|
|
||||||
|
rm -rf modules
|
||||||
|
mkdir -p modules
|
||||||
|
|
||||||
|
for host in ${hosts_all[@]}; do
|
||||||
|
echo $host
|
||||||
|
ssh root@$host lsmod | sort > modules/$host
|
||||||
|
echo
|
||||||
|
done
|
16
fetch-packages
Executable file
16
fetch-packages
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -o errexit
|
||||||
|
|
||||||
|
user=root
|
||||||
|
|
||||||
|
. hosts.sh
|
||||||
|
|
||||||
|
rm -rf packages
|
||||||
|
mkdir -p packages
|
||||||
|
|
||||||
|
for host in ${hosts_all[@]}; do
|
||||||
|
echo $host
|
||||||
|
ssh root@$host pacman -Qqe > packages/$host
|
||||||
|
echo
|
||||||
|
done
|
16
fetch-units
Executable file
16
fetch-units
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -o errexit
|
||||||
|
|
||||||
|
user=root
|
||||||
|
|
||||||
|
. hosts.sh
|
||||||
|
|
||||||
|
rm -rf units
|
||||||
|
mkdir -p units
|
||||||
|
|
||||||
|
for host in ${hosts_all[@]}; do
|
||||||
|
echo $host
|
||||||
|
ssh root@$host systemctl list-unit-files --state=enabled --state=disabled --state=masked | sort > units/$host
|
||||||
|
echo
|
||||||
|
done
|
Loading…
Reference in New Issue
Block a user