configurable busybox
allows modules to add to the busybox applets and change config
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
{
|
||||
liminix
|
||||
, lib
|
||||
, busybox
|
||||
, ppp
|
||||
, pppoe
|
||||
, writeAshScript
|
||||
|
@@ -1,6 +1,5 @@
|
||||
{
|
||||
liminix
|
||||
, busybox
|
||||
, writeAshScript
|
||||
, serviceFns
|
||||
} :
|
||||
@@ -43,7 +42,7 @@ let
|
||||
'';
|
||||
in longrun {
|
||||
inherit name;
|
||||
run = "${busybox}/bin/udhcpc -f -i ${interface.device} -x hostname:$(cat /proc/sys/kernel/hostname) -s ${script}";
|
||||
run = "/bin/udhcpc -f -i ${interface.device} -x hostname:$(cat /proc/sys/kernel/hostname) -s ${script}";
|
||||
notification-fd = 10;
|
||||
dependencies = [ interface ] ++ dependencies;
|
||||
}
|
||||
|
@@ -3,7 +3,6 @@
|
||||
, s6-rc
|
||||
, s6
|
||||
, lib
|
||||
, busybox
|
||||
, callPackage
|
||||
, writeScript
|
||||
, serviceFns
|
||||
@@ -12,7 +11,7 @@ let
|
||||
inherit (builtins) concatStringsSep;
|
||||
output = service: name: "/run/service-state/${service.name}/${name}";
|
||||
serviceScript = commands : ''
|
||||
#!${busybox}/bin/sh
|
||||
#!/bin/sh
|
||||
exec 2>&1
|
||||
. ${serviceFns}
|
||||
${commands}
|
||||
|
Reference in New Issue
Block a user