You've already forked Argon-One-Daemon
Inital Commit
All checks were successful
Argon One Daemon / Argon One Daemon [arm64] (push) Successful in 33s
All checks were successful
Argon One Daemon / Argon One Daemon [arm64] (push) Successful in 33s
This commit is contained in:
17
root/DEBIAN/preinst
Normal file
17
root/DEBIAN/preinst
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/sh
|
||||
|
||||
set -e
|
||||
set -u
|
||||
|
||||
case "${1}" in
|
||||
install)
|
||||
BOOT=$(/usr/bin/grep '/boot' '/etc/fstab' | /usr/bin/mawk '$1 !~ /^#/ && $2 ~ /^[/]/ {print $2}')
|
||||
/usr/bin/sed --in-place 's/dtparam=i2c_arm=off/dtparam=i2c_arm=on/' "${BOOT}/config.txt"
|
||||
/usr/bin/sed --in-place 's/ console=ttyS1,115200//' "${BOOT}/cmdline.txt"
|
||||
/usr/bin/echo '##'
|
||||
/usr/bin/echo '##'
|
||||
/usr/bin/echo '## Restart the device to load the necessary drivers.'
|
||||
/usr/bin/echo '##'
|
||||
/usr/bin/echo '##'
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user