Add post update service
This commit is contained in:
parent
8430971fa9
commit
bd9b65a1ba
2 changed files with 19 additions and 0 deletions
|
@ -41,6 +41,11 @@ uninstall() {
|
|||
fi
|
||||
}
|
||||
|
||||
# Run the original SteamOS post upgrade script
|
||||
/usr/lib/steamos/steamos-post-update
|
||||
# If this script fails, I don't want it to run again
|
||||
rm -fv /var/lib/steamos-atomupd/system-updated
|
||||
|
||||
#cp -fv 10-monitor.conf /etc/X11/xorg.conf.d/
|
||||
cp -fv 10-ptrace.conf /etc/sysctl.d/
|
||||
cp -fv mglru.conf /etc/tmpfiles.d/
|
||||
|
|
14
steamos-post-update.service
Normal file
14
steamos-post-update.service
Normal file
|
@ -0,0 +1,14 @@
|
|||
[Unit]
|
||||
Description=Run tasks on the first boot after an OS update
|
||||
After=local-fs.target
|
||||
Before=sddm.service
|
||||
ConditionPathExists=/var/lib/steamos-atomupd/system-updated
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=no
|
||||
ExecStart=/home/deck/deck_boot/post_upgrade.sh
|
||||
|
||||
[Install]
|
||||
WantedBy=local-fs.target
|
||||
|
Loading…
Add table
Reference in a new issue