#!/bin/sh DESC="Custom configuration" . /etc/profile PATH=/sbin:/bin:/usr/sbin:/usr/bin case "$1" in start) echo -n "Start $DESC: " sed -i 's/^.*recovery.*/recovery=false/g' /boot/diya-config.txt || \ echo "recovery=false" >> /boot/diya-config.txt ;; *) N=/etc/init.d/$NAME echo "Usage: $N {start}" >&2 exit 1 ;; esac exit 0