• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Run command on boot Ubuntu

Hey guys,

I have 2 things I am trying to do.

First off, is there anyway for me, on my Thinkpad T61, to enable the volume and mute buttons at boot rather than at login?

Second, I need to run (As root, sudo alone wont work):
echo -n 250 > /sys/devices/platform/i8042/serio0/serio2/sensitivity

I was looking at editing my /etc/init.d/rc.local, but it is just straight code, I'm not sure if I am in the right one.

A "find / -name "rc.local"" results in two finds, the one above as well as a /etc/rc.local which appears to be empty after first boot.

Thanks guys,
-Kevin
 
My problem is where to drop this into the rc.local file. It is in a language that I am unfamiliar with (Doesn't look like C, Java, or anything else)...

This is what is in there:
#! /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

Do I just throw it in at the end after whatever esac is?
 
Back
Top