10 lines
374 B
Bash
Executable File
10 lines
374 B
Bash
Executable File
#!/bin/sh
|
|
|
|
for i in $(ls /etc/sv/); do
|
|
rm -f /etc/dinit.d/boot.d/runitb.d
|
|
mkdir -p /etc/dinit.d/runitb.d/"$i"
|
|
cp -r /etc/sv/"$i"/* /etc/dinit.d/runitb.d/"$i"/
|
|
rm -rf /etc/dinit.d/runitb.d/"$i"/supervise
|
|
printf "type = process \nworking-dir = /etc/dinit.d/runitb.d/"$i"/ \nwaits-for = loginready \ncommand = /etc/dinit.d/runitb.d/"$i"/run" > /etc/dinit.d/"$i"
|
|
done
|