use /bin/sh for init scripts
This commit is contained in:
parent
ad3ef53171
commit
99af416e14
5 changed files with 5 additions and 7 deletions
|
@ -1,7 +1,6 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
let
|
let
|
||||||
inherit (pkgs)
|
inherit (pkgs)
|
||||||
busybox
|
|
||||||
execline
|
execline
|
||||||
s6
|
s6
|
||||||
s6-init-bin
|
s6-init-bin
|
||||||
|
@ -16,12 +15,11 @@ let
|
||||||
name = "s6-scripts";
|
name = "s6-scripts";
|
||||||
src = ./scripts;
|
src = ./scripts;
|
||||||
phases = ["unpackPhase" "installPhase" ];
|
phases = ["unpackPhase" "installPhase" ];
|
||||||
buildInputs = [busybox];
|
buildInputs = [];
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir $out
|
mkdir $out
|
||||||
cp -r $src $out/scripts
|
cp -r $src $out/scripts
|
||||||
chmod -R +w $out
|
chmod -R +w $out
|
||||||
patchShebangs $out/scripts
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
service = dir {
|
service = dir {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env sh
|
#!/bin/sh
|
||||||
|
|
||||||
rl="$1"
|
rl="$1"
|
||||||
shift
|
shift
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
|
||||||
### Things to do before hardware halt/reboot/poweroff.
|
### Things to do before hardware halt/reboot/poweroff.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/nix/store/xbdqbi2mscmhl5wcpbgpjdwxbsrvpkil-bash-5.1-p16/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
### Things to do *right before* the machine gets rebooted or
|
### Things to do *right before* the machine gets rebooted or
|
||||||
### powered off, at the very end of the shutdown sequence,
|
### powered off, at the very end of the shutdown sequence,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
### This script is called once at boot time by rc.init, and is
|
### This script is called once at boot time by rc.init, and is
|
||||||
### also called by the runleveld service every time the user
|
### also called by the runleveld service every time the user
|
||||||
|
|
Loading…
Reference in a new issue