21 lines
390 B
Bash
21 lines
390 B
Bash
#!/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 |