rc.local (linux-kubuntu)

Octopussy

Member
How would I go about adding commands to the rc.local file? The command I want to add is "synclient MaxTapTime=0", which disables tapping on the laptop's touchpad. Here's what the file currently looks like...

Code:
#! /bin/sh

PATH=/sbin:/bin:/usr/sbin:/usr/bin
[ -f /etc/default/rcS ] && . /etc/default/rcS
. /lib/lsb/init-functions

do_start() {
    if [ -x /etc/rc.local ]; then
        log_begin_msg "Running local boot scripts (/etc/rc.local)"
        /etc/rc.local
        log_end_msg $?
    fi
}

case "$1" in
    start)
    do_start
        ;;
    restart|reload|force-reload)
        echo "Error: argument '$1' not supported" >&2
        exit 3
        ;;
    stop)
        ;;
    *)
        echo "Usage: $0 start|stop" >&2
        exit 3
        ;;
esac
Where would I put the command I want it to run at startup?
 
Hi octopussy,

What's the path for the file you posted above? I don't think it's /etc/rc.local, is it?
 
Back
Top