mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2024-10-01 00:55:42 -04:00
21 lines
394 B
Plaintext
21 lines
394 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
set -o errexit
|
||
|
|
||
|
user=root
|
||
|
|
||
|
. hosts.sh
|
||
|
|
||
|
rm -rf modules packages units
|
||
|
mkdir -p modules packages units
|
||
|
|
||
|
for host in ${hosts_all[@]}; do
|
||
|
(
|
||
|
ssh root@$host lsmod | sort > modules/$host
|
||
|
ssh root@$host pacman -Qqe > packages/$host
|
||
|
ssh root@$host systemctl list-unit-files --state=enabled --state=disabled --state=masked | sort > units/$host
|
||
|
) &
|
||
|
done
|
||
|
|
||
|
wait
|