You are not logged in.
Pages: 1
$ nano /etc/rc.localreveals
#!/bin/bash
## /etc/rc.local
## Tap on Trackpoint to left-click
echo -n 1 > /sys/devices/platform/i8042/serio1/press_to_select
## Reduce spin downs on /dev/sda (internal hard disk)
hdparm -B 128 /dev/sda
## Stop spin downs on /dev/sda (internal hard disk)
## DO NOT set this unless you are sure to not move laptop
#hdparm -B 255 /dev/sda
## Start hdapsd to monitor for drops
## This will stop the hard drive if the computer is dropped
/etc/rc.d/hdapsd start
## Test whether rc.local is run during boot
echo "rc.local executed successfully" > /tmp/rclocal_executed*********************************************************
$ ls -l1 /etc/reveals
[..]
-rwxr-xr-x 1 root root 550 Nov 20 13:28 rc.local
[..] I am running a Lenovo Thinkpad X61 Tablet/Hybrid Laptop. Any ideas on why my rc.local might not be running? I have to confess, this whole systemd thing is boggling my mind...for now.
Other things I've tried include:
#!bin/sh
#!bin/sh -e
#!bin/bash -e
I've tried all 4 iterations above from /etc/rc.d/
I've made sure it was executable using:
# chmod +x /etc/rc.local
I notice that the line /etc/rc.d/hdapsd start does not function if I run it as root after boot, however hdapsd start does run. I'll work on that once I am sure that the script is running.
I am pretty sure of my syntax on the echo commands.
I don't know how to check to see whether my spindowns have been affected.
Offline
Are you booting with "pure" systemd setup?
There are numerous threads regarding this. What happened when you followed the suggestions? What are the errors etc.
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
I don't know. I think I am going to reinstall the whole thing with a focus on a 'pure' systemd so that I don't have the sort of bizzaro-world dependencies that you get from installing multiple programs that do the same thing. I can't 'power-use' the system if I can't understand it.
Chalk this one up to 'user confused about changes'.
Thanks though.
Offline
I think the point is that rc.local is deprecated with systemd. I recommend a careful reading of https://wiki.archlinux.org/index.php/Systemd
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
AFAIK for a pure systemd installation, you have to write a systemd unit replacement for rc.local
Take a look at some '/usr/lib/systemd/system/*.service' and use as template then use 'systemctl' tool to enable it.
Alternatively if your rc.local script didn't need root access you may call it from .xinitrc or use your login manager run startup command for you
Offline
Pages: 1