Initial commit
This commit is contained in:
21
recipes-diya/initramfs/files/confd
Normal file
21
recipes-diya/initramfs/files/confd
Normal file
@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
|
||||
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||
DESC="Custom configuration"
|
||||
. /etc/profile
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n "Start $DESC: "
|
||||
sed -i 's/^.*recovery.*/recovery=false/g' /boot/config.txt || \
|
||||
echo "recovery=false" >> /boot/config.txt
|
||||
;;
|
||||
|
||||
*)
|
||||
N=/etc/init.d/$NAME
|
||||
echo "Usage: $N {start}" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
Reference in New Issue
Block a user