mirror of
https://github.com/dirtbags/moth.git
synced 2025-01-05 11:30:41 -07:00
eb77d971c5
This required a fair amount of shuffling stuff around, as can be seen. Fortunately, now things ought to be able to run more or less standalone again. I also figured out a way to have the build system be a tad smarter about not rebuilding shared stuff, although you still install the exact same eris binary and /service subdirs for mcp and p2. But at least you only have to change one place in the source code now.
16 lines
350 B
Bash
Executable file
16 lines
350 B
Bash
Executable file
#! /bin/sh
|
|
|
|
exec 2>&1
|
|
|
|
password='grape guts'
|
|
for fn in /opt/*/password; do
|
|
read password < $fn && break
|
|
done
|
|
|
|
printf 'root:%s' "$password" | chpasswd --md5
|
|
|
|
# Bring up the NIC; this will get us at least a link-local address, and
|
|
# hopefully a global address with stateless autoconfiguration.
|
|
ip link set eth0 up
|
|
|
|
exec dropbear -r ./rsa.key -E -F
|