script grabber
This commit is contained in:
parent
d0a1b543c9
commit
87e7d468cb
12
grabber.service
Normal file
12
grabber.service
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=grabber:report conf
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/opt/grabber.sh
|
||||||
|
RemainAfterExit=false
|
||||||
|
StandardOutput=append:/var/log/grabber.log
|
||||||
|
StandardError=append:/var/log/grabber-error.log
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
||||||
19
grabber.sh
19
grabber.sh
@ -1,5 +1,14 @@
|
|||||||
cat /etc/passwd > passwd.file
|
#!/bin/bash
|
||||||
cat /etc/group > group.file
|
DIR=/opt/grabber
|
||||||
lspci -nn > lspci.cmd
|
|
||||||
lsusb > lsusb.cmd
|
cat /etc/passwd > $DIR/passwd.file
|
||||||
sudo apt list --installed > apt.cmd
|
cat /etc/group > $DIR/group.file
|
||||||
|
lspci -nn > $DIR/lspci.cmd
|
||||||
|
lsusb > $DIR/lsusb.cmd
|
||||||
|
apt list --installed > $DIR/apt.cmd
|
||||||
|
systemd-analyze > $DIR/systemd-analyze.cmd
|
||||||
|
systemd-analyze blame | head -n 10 > $DIR/systemd-blame.cmd
|
||||||
|
lscpu > $DIR/lscpu.cmd
|
||||||
|
lshw-gtk > $DIR/lshw-gtk.cmd
|
||||||
|
inxi > $DIR/inxi.cmd
|
||||||
|
lsmem > $DIR/lsmem.cmd
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user