Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lx2160a_build
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Boxiang Sun
lx2160a_build
Commits
81c59b6b
Commit
81c59b6b
authored
Oct 26, 2022
by
Josua Mayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debian/ubuntu: enable servicing watchdog every 30 seconds
Signed-off-by:
Josua Mayer
<
josua@solid-run.com
>
parent
78985e2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
runme.sh
runme.sh
+2
-0
No files found.
runme.sh
View file @
81c59b6b
...
...
@@ -297,6 +297,7 @@ case "\$1" in
chroot /mnt apt update
chroot /mnt apt install --no-install-recommends -y systemd-sysv apt locales less wget procps openssh-server ifupdown net-tools isc-dhcp-client ntpdate lm-sensors i2c-tools psmisc less sudo htop iproute2 iputils-ping kmod network-manager iptables rng-tools apt-utils ethtool
echo -e "root
\n
root" | chroot /mnt passwd
sed -i "s;[# ]*RuntimeWatchdogSec=.*
\$
;RuntimeWatchdogSec=30;g" /etc/systemd/system.conf
umount /mnt/var/lib/apt/
umount /mnt/var/cache/apt
chroot /mnt apt clean
...
...
@@ -359,6 +360,7 @@ case "\$1" in
echo "localhost" > /mnt/etc/hostname
echo "127.0.0.1 localhost" > /mnt/etc/hosts
echo -e "root
\n
root" | chroot /mnt passwd
sed -i "s;[# ]*RuntimeWatchdogSec=.*
\$
;RuntimeWatchdogSec=30;g" /etc/systemd/system.conf
umount /mnt/var/lib/apt/
umount /mnt/var/cache/apt/
reboot
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment