diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-08-22 08:20:22 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-08-22 08:20:22 +0000 |
commit | 8286add1116697498fe44b9de347476fa9a33833 (patch) | |
tree | 13cc627c4bab781c4b2934fbf30c0949660b7184 /layout | |
parent | 0c2dd45bb46a689611bc8c568103c7011ec3ad06 (diff) | |
download | lh-bootstrap-8286add1116697498fe44b9de347476fa9a33833.tar.xz |
More import -> importas conversions
Diffstat (limited to 'layout')
-rwxr-xr-x | layout/rootfs/etc/s6-rc/source-base/fifodir-cleanup/run | 2 | ||||
-rw-r--r-- | layout/rootfs/etc/s6-rc/source-base/init-clock/up | 10 | ||||
-rw-r--r-- | layout/rootfs/etc/s6-rc/source-base/mount-cgroups-sub/up | 2 | ||||
-rwxr-xr-x | layout/rootfs/etc/s6-rc/source-base/ntpclient/run | 6 | ||||
-rw-r--r-- | layout/rootfs/etc/s6-rc/source-base/static-eth0/up | 4 | ||||
-rwxr-xr-x | layout/rootfs/etc/udhcpc/bound | 16 | ||||
-rwxr-xr-x | layout/rootfs/etc/udhcpc/deconfig | 4 | ||||
-rwxr-xr-x | layout/rootfs/etc/udhcpc/leasefail | 4 | ||||
-rwxr-xr-x | layout/rootfs/etc/udhcpc/nak | 4 | ||||
-rwxr-xr-x | layout/rootfs/etc/udhcpc/renew | 12 |
10 files changed, 32 insertions, 32 deletions
diff --git a/layout/rootfs/etc/s6-rc/source-base/fifodir-cleanup/run b/layout/rootfs/etc/s6-rc/source-base/fifodir-cleanup/run index df7669b..a2c371b 100755 --- a/layout/rootfs/etc/s6-rc/source-base/fifodir-cleanup/run +++ b/layout/rootfs/etc/s6-rc/source-base/fifodir-cleanup/run @@ -3,7 +3,7 @@ fdmove -c 2 1 if { forbacktickx -p -0 i { s6-ls -0 /run/service } - import -u i + importas -u i s6-cleanfifodir /run/service/${i}/event } s6-setuidgid nobody diff --git a/layout/rootfs/etc/s6-rc/source-base/init-clock/up b/layout/rootfs/etc/s6-rc/source-base/init-clock/up index 43e0c65..1c7f02c 100644 --- a/layout/rootfs/etc/s6-rc/source-base/init-clock/up +++ b/layout/rootfs/etc/s6-rc/source-base/init-clock/up @@ -9,11 +9,11 @@ pipeline foreground { s6-envdir /etc/s6-linux-init/env-stage2 - import -u COUNTRY_CODE + importas -u COUNTRY_CODE COUNTRY_CODE s6-echo ${COUNTRY_CODE} } forx CODE { uk de ru cn kr jp us ca br au il za } - import -u CODE + importas -u CODE CODE s6-echo ${CODE} } @@ -36,9 +36,9 @@ pipeline { s6-setuidgid nobody forstdin -p -d"\n" CODE - import -u CODE + importas -u CODE CODE forx -p I { 0 1 } - import -u I + importas -u I I redirfd -w 2 /dev/null s6-dnsip4 -t 30000 -- ${I}.${CODE}.pool.ntp.org } @@ -52,7 +52,7 @@ pipeline { s6-setuidgid ntp forstdin -p -d"\n" NTPSERVERIP - import -u NTPSERVERIP + importas -u NTPSERVERIP NTPSERVERIP redirfd -w 2 /dev/null s6-sntpclock -f -T 5000 ${NTPSERVERIP} } diff --git a/layout/rootfs/etc/s6-rc/source-base/mount-cgroups-sub/up b/layout/rootfs/etc/s6-rc/source-base/mount-cgroups-sub/up index 94f7c28..0c915da 100644 --- a/layout/rootfs/etc/s6-rc/source-base/mount-cgroups-sub/up +++ b/layout/rootfs/etc/s6-rc/source-base/mount-cgroups-sub/up @@ -3,7 +3,7 @@ pipeline { s6-tail -n +2 } pipeline { s6-cut -d"\t" -f1 } pipeline { s6-grep -vF -- devices } forstdin -d"\n" -- i -import -u i +importas -u i i if { s6-mkdir -p /sys/fs/cgroup/${i} } foreground { s6-mount -t cgroup -o ${i} -- cgroup /sys/fs/cgroup/${i} } importas -u ? ? diff --git a/layout/rootfs/etc/s6-rc/source-base/ntpclient/run b/layout/rootfs/etc/s6-rc/source-base/ntpclient/run index 1c1a820..3eebee0 100755 --- a/layout/rootfs/etc/s6-rc/source-base/ntpclient/run +++ b/layout/rootfs/etc/s6-rc/source-base/ntpclient/run @@ -12,9 +12,9 @@ pipeline { s6-setuidgid nobody s6-envdir /etc/s6-linux-init/env-stage2 - import -u COUNTRY_CODE + importas -u COUNTRY_CODE COUNTRY_CODE forx -p I { 0 1 } - import -u I + importas -u I I s6-dnsip4 -t 30000 -- ${I}.${COUNTRY_CODE}.pool.ntp.org } importas -u p1 ! @@ -28,7 +28,7 @@ pipeline { s6-setuidgid ntp forstdin -p -d"\n" NTPSERVERIP - import -u NTPSERVERIP + importas -u NTPSERVERIP NTPSERVERIP s6-sntpclock -T 5000 ${NTPSERVERIP} } importas -u p2 ! diff --git a/layout/rootfs/etc/s6-rc/source-base/static-eth0/up b/layout/rootfs/etc/s6-rc/source-base/static-eth0/up index 2fb37e8..640d66a 100644 --- a/layout/rootfs/etc/s6-rc/source-base/static-eth0/up +++ b/layout/rootfs/etc/s6-rc/source-base/static-eth0/up @@ -1,8 +1,8 @@ s6-envdir /etc/s6-linux-init/env-stage2 multisubstitute { - import -i ETH0_IP4 - import DEFAULT_ROUTER_IP4 + importas -i ETH0_IP4 ETH0_IP4 + importas DEFAULT_ROUTER_IP4 DEFAULT_ROUTER_IP4 } if { ip addr add ${ETH0_IP4}/24 dev eth0 } foreground { ip route del default } diff --git a/layout/rootfs/etc/udhcpc/bound b/layout/rootfs/etc/udhcpc/bound index 8b87214..c6a5748 100755 --- a/layout/rootfs/etc/udhcpc/bound +++ b/layout/rootfs/etc/udhcpc/bound @@ -2,14 +2,14 @@ multisubstitute { - import -ui interface - import -ui ip - import -ui subnet - import -ui mask - import -ui router - import -ui dns - import -uD localdomain domain - import -ui lease + importas -ui interface interface + importas -ui ip ip + importas -ui subnet subnet + importas -ui mask mask + importas -ui router router + importas -ui dns dns + importas -uD localdomain domain domain + importas -ui lease lease } foreground diff --git a/layout/rootfs/etc/udhcpc/deconfig b/layout/rootfs/etc/udhcpc/deconfig index b66ae9e..aee3f08 100755 --- a/layout/rootfs/etc/udhcpc/deconfig +++ b/layout/rootfs/etc/udhcpc/deconfig @@ -1,7 +1,7 @@ #!/command/execlineb -P multisubstitute { - import -uD "<no server id>" serverid - import -uD "<no error message>" message + importas -uD "<no server id>" serverid serverid + importas -uD "<no error message>" message message } s6-echo "udhcpc-script: deconfig: server ${serverid} said: ${message}" diff --git a/layout/rootfs/etc/udhcpc/leasefail b/layout/rootfs/etc/udhcpc/leasefail index 579dbac..2323345 100755 --- a/layout/rootfs/etc/udhcpc/leasefail +++ b/layout/rootfs/etc/udhcpc/leasefail @@ -1,7 +1,7 @@ #!/command/execlineb -P multisubstitute { - import -uD "<no server id>" serverid - import -uD "<no error message>" message + importas -uD "<no server id>" serverid serverid + importas -uD "<no error message>" message message } s6-echo "udhcpc-script: leasefail: server ${serverid} said: ${message}" diff --git a/layout/rootfs/etc/udhcpc/nak b/layout/rootfs/etc/udhcpc/nak index 3ed0bb6..3ebcd12 100755 --- a/layout/rootfs/etc/udhcpc/nak +++ b/layout/rootfs/etc/udhcpc/nak @@ -1,7 +1,7 @@ #!/command/execlineb -P multisubstitute { - import -uD "<no server id>" serverid - import -uD "<no error message>" message + importas -uD "<no server id>" serverid serverid + importas -uD "<no error message>" message message } s6-echo "udhcpc-script: nak: server ${serverid} said: ${message}" diff --git a/layout/rootfs/etc/udhcpc/renew b/layout/rootfs/etc/udhcpc/renew index 1bd5236..7b52a06 100755 --- a/layout/rootfs/etc/udhcpc/renew +++ b/layout/rootfs/etc/udhcpc/renew @@ -2,11 +2,11 @@ multisubstitute { - import -ui interface - import -ui ip - import -uD "<unknown mask>" mask - import -uD "<unknown DNS>" dns - import -ui router - import -ui lease + importas -ui interface interface + importas -ui ip ip + importas -uD "<unknown mask>" mask mask + importas -uD "<unknown DNS>" dns dns + importas -ui router router + importas -ui lease lease } s6-echo "udhcpc-script: renew: ${ip}/${mask} on ${interface}, gateway ${router}, lease time ${lease}" |