2023-03-08 03:20:05 +00:00
|
|
|
#!/sbin/openrc-run
|
|
|
|
|
|
|
|
name=$RC_SVCNAME
|
|
|
|
error_log=/var/log/qubes/$RC_SVCNAME.log
|
|
|
|
|
|
|
|
depend() {
|
|
|
|
need qubes-db
|
|
|
|
need qubes-meminfo-writer
|
|
|
|
need qubes-core-early
|
|
|
|
}
|
|
|
|
|
|
|
|
start()
|
|
|
|
{
|
|
|
|
echo "Finagling printer icon:" | tee -a "$error_log"
|
|
|
|
/usr/lib/qubes/init/control-printer-icon.sh 2>&1 | tee -a "$error_log"
|
|
|
|
|
|
|
|
echo "Executing Qubes misc post scripts:" | tee -a "$error_log"
|
|
|
|
/usr/lib/qubes/init/misc-post.sh 2>&1 | tee -a "$error_log"
|
|
|
|
|
|
|
|
echo "Setting up IP:" | tee -a "$error_log"
|
|
|
|
/usr/lib/qubes/setup-ip add eth0 2>&1 | tee -a "$error_log"
|
|
|
|
|
|
|
|
echo "Syncing clock" | tee -a "$error_log"
|
2023-03-08 03:40:06 +00:00
|
|
|
/usr/bin/qvm-sync-clock | tee -a "$error_log"
|
2023-03-08 03:20:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
stop()
|
|
|
|
{
|
|
|
|
/usr/lib/qubes/init/misc-post-stop.sh
|
|
|
|
}
|