prototype-cjdns-pi icon indicating copy to clipboard operation
prototype-cjdns-pi copied to clipboard

Debian 9 missing rc.local

Open darkdrgn2k opened this issue 6 years ago • 4 comments

Bring it back

https://www.itechlounge.net/2017/10/linux-how-to-add-rc-local-in-debian-9/

or work around it.

  • [ ] Fix #340 implemented workaround
  • [ ] Fix hostapd dependency

darkdrgn2k avatar Mar 11 '19 01:03 darkdrgn2k

Unless there's a supported alternative that isn't just "Create a systemd unit file for every damn thing", I would vote to bring it back.

makew0rld avatar Mar 12 '19 02:03 makew0rld

What is being done about this? My current RPi install is on Raspbian 9 and has /etc/rc.local, but I guess other pure Debian installs don't?

pi@tomesh-d15b:~ $ lsb_release -a
No LSB modules are available.
Distributor ID:	Raspbian
Description:	Raspbian GNU/Linux 9.8 (stretch)
Release:	9.8
Codename:	stretch
pi@tomesh-d15b:~ $ cat /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
  printf "My IP address is %s\n" "$_IP"
fi

service dnsmasq restart
rfkill unblock wifi && service hostapd restart
/usr/local/bin/nodeinfo-update.sh
/usr/local/bin/nodeinfo-update.sh
exit 0

makew0rld avatar Apr 27 '19 18:04 makew0rld

Correct

I guess debian added it so i can output your ip address :)

darkdrgn2k avatar Jun 16 '19 12:06 darkdrgn2k

So what are we doing for non-raspbian installs? Or is it not necessary in our stack anymore?

makew0rld avatar Jun 19 '19 01:06 makew0rld