Google Groups

Re: Cannot apt-get install packages - led_aging.sh missing LSB tags and overrides


Dirk Koopman Jul 11, 2014 6:56 AM
Posted in group: BeagleBoard

Categories: BeagleBone Black : Debian : Linux : Newbie : Support :



Replace the existing /etc/init.d/led_aging.sh script with:

#!/bin/sh -e
### BEGIN INIT INFO
# Provides:          led_aging.sh
# Required-Start:    $local_fs
# Required-Stop:     $local_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start LED aging
# Description:       Starts LED aging (whatever that is)
### END INIT INFO

x=$(/bin/ps -ef | /bin/grep "[l]ed_acc")
if [ ! -n "$x" -a -x /usr/bin/led_acc ]; then
    /usr/bin/led_acc &
fi