From 1d9f19ad69295cf1ce94624a17b242f52ced4547 Mon Sep 17 00:00:00 2001 From: david Date: Thu, 26 Oct 2023 10:18:06 +0200 Subject: [PATCH 1/2] add make-automaps.service service to create scratch maps, if they do not exist --- make-automaps/make-automaps.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 make-automaps/make-automaps.service diff --git a/make-automaps/make-automaps.service b/make-automaps/make-automaps.service new file mode 100644 index 00000000..b88951f1 --- /dev/null +++ b/make-automaps/make-automaps.service @@ -0,0 +1,12 @@ +[Unit] +DefaultDependencies=no +After=systemd-remount-fs.service +ConditionPathExists=!/etc/automount/auto.scratch + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/usr/sbin/make-automaps + +[Install] +WantedBy=basic.target From 4f1ab33a579cc7c931c4fa5e44553097001139f8 Mon Sep 17 00:00:00 2001 From: david Date: Thu, 26 Oct 2023 10:18:52 +0200 Subject: [PATCH 2/2] install.sh: add install for make-automaps.service --- install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install.sh b/install.sh index 7944e05f..223028a5 100755 --- a/install.sh +++ b/install.sh @@ -253,6 +253,7 @@ install_data pdist/pdistd@.service "$DESTDIR$systemdunitd install_exec pdist/pdist-bootcheck "$DESTDIR$usr_exec_prefix/libexec/pdist-bootcheck" install_data pdist/pdist-bootcheck.service "$DESTDIR$systemdunitdir/pdist-bootcheck.service" install_exec wakeonlan/wake "$DESTDIR$usr_bindir/wake" +install_data make-automaps/make-automaps.service "$DESTDIR$systemdunitdir/make-automaps.service" postinstall exit