You've already forked Argon-One-Daemon
Initialize Git Repository: 'Argon-One-Daemon'
This commit is contained in:
21
root/DEBIAN/preinst
Normal file
21
root/DEBIAN/preinst
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/sh
|
||||
|
||||
set -e
|
||||
set -u
|
||||
|
||||
BOOT=$(/usr/bin/grep '/boot' '/etc/fstab' | /usr/bin/mawk '$1 !~ /^#/ && $2 ~ /^[/]/ {print $2}')
|
||||
/usr/bin/test -n "${BOOT}"
|
||||
|
||||
case "${1}" in
|
||||
install)
|
||||
/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 '# #'
|
||||
/usr/bin/echo '# ! Restart the device to load the necessary functions ! #'
|
||||
/usr/bin/echo '# #'
|
||||
/usr/bin/echo '##########################################################'
|
||||
/usr/bin/echo ''
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user