-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the siltronix modules to the kernel. issue #8
- Loading branch information
tim
committed
May 25, 2022
1 parent
16a201c
commit 5ef9ed6
Showing
2 changed files
with
18 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
#!/bin/sh | ||
# | ||
# Author: Tim Molteno [email protected] | ||
# (c) 2022 | ||
# | ||
export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true | ||
export LC_ALL=C LANGUAGE=C LANG=C | ||
dpkg --configure -a | ||
|
@@ -7,21 +11,24 @@ dpkg --configure -a | |
umount /proc | ||
# Needed because we get permissions problems for some reason | ||
chmod 0666 /dev/null | ||
|
||
# | ||
# Change root password to 'licheerv' | ||
# | ||
# Change Root Password | ||
# sed -i -e "s/^root:[^:]\+:/root:`openssl passwd -1 -salt root licheerv`:/" /etc/shadow | ||
usermod --password $(echo licheerv | openssl passwd -1 -stdin) root | ||
|
||
# | ||
# Add a new user rv:lichee | ||
# Add a new user rv | ||
# | ||
mkdir -p /home/rv | ||
useradd --password dummy \ | ||
-G cdrom,floppy,sudo,audio,dip,video,plugdev \ | ||
--home-dir /home/rv --shell /bin/bash rv | ||
|
||
chown rv:rv /home/rv | ||
# sed -i -e "s/^rv:[^:]\+:/rv:`openssl passwd -1 -salt rv lichee`:/" /etc/shadow | ||
# Set password to 'lichee' | ||
usermod --password $(echo lichee | openssl passwd -1 -stdin) rv | ||
|
||
# This is needed | ||
# | ||
# Enable system services | ||
# | ||
systemctl enable systemd-resolved.service |