services/tmptsync: set FILE and fix shebang

This commit is contained in:
LavaDesu 2022-02-23 21:26:40 +07:00
parent 0806e9ec72
commit 72bbc39ce7
Signed by: cilly
GPG key ID: 6500251E087653C9
2 changed files with 3 additions and 1 deletions

View file

@ -10,11 +10,13 @@ in
after = [ "local-fs.target" "sysinit.target" ]; after = [ "local-fs.target" "sysinit.target" ];
unitConfig.DefaultDependencies = false; unitConfig.DefaultDependencies = false;
environment.FILE = dir;
script = "${../../scripts/tmptsync.sh} load"; script = "${../../scripts/tmptsync.sh} load";
wantedBy = [ "basic.target" ]; wantedBy = [ "basic.target" ];
}; };
tmptsync-save = { tmptsync-save = {
environment.FILE = dir;
script = "${../../scripts/tmptsync.sh} load"; script = "${../../scripts/tmptsync.sh} load";
wantedBy = [ "basic.target" ]; wantedBy = [ "basic.target" ];
}; };

View file

@ -1,4 +1,4 @@
#!/usr/bin/env sh #!/bin/sh
# #
# Super simple script that saves clock to file and reads from it later # Super simple script that saves clock to file and reads from it later
# Something like fake-hwclock from debian # Something like fake-hwclock from debian