uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
26
nixos/modules/services/networking/ircd-hybrid/control.in
Normal file
26
nixos/modules/services/networking/ircd-hybrid/control.in
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#! @shell@ -e
|
||||
|
||||
# Make sure that the environment is deterministic.
|
||||
export PATH=@coreutils@/bin
|
||||
|
||||
if test "$1" = "start"; then
|
||||
if ! @procps@/bin/pgrep ircd; then
|
||||
if @ipv6Enabled@; then
|
||||
while ! @iproute@/sbin/ip addr |
|
||||
@gnugrep@/bin/grep inet6 |
|
||||
@gnugrep@/bin/grep global; do
|
||||
sleep 1;
|
||||
done;
|
||||
fi;
|
||||
rm -rf /home/ircd
|
||||
mkdir -p /home/ircd
|
||||
chown ircd: /home/ircd
|
||||
cd /home/ircd
|
||||
env - HOME=/homeless-shelter $extraEnv \
|
||||
@su@/bin/su ircd --shell=/bin/sh -c ' @ircdHybrid@/bin/ircd -configfile @out@/conf/ircd.conf </dev/null -logfile /home/ircd/ircd.log' 2>&1 >/var/log/ircd-hybrid.out
|
||||
fi;
|
||||
fi
|
||||
|
||||
if test "$1" = "stop" ; then
|
||||
@procps@/bin/pkill ircd;
|
||||
fi;
|
||||
Loading…
Add table
Add a link
Reference in a new issue