From fca4122a3c14d1194e72d6c36cd98697ffebe527 Mon Sep 17 00:00:00 2001 From: anomen Date: Tue, 23 Sep 2014 14:47:36 +0200 Subject: [PATCH] raspi customs --- raspi/customs/boot/config.txt | 5 ++-- raspi/customs/etc/dphys-swapfile | 2 +- raspi/customs/etc/network/interfaces | 12 +++++++++ .../etc/pam.d/common-session-noninteractive | 29 ++++++++++++++++++++++ raspi/customs/etc/profile.d/ffmpeg_path.sh | 1 + raspi/customs/usr/local/bin/mountall | 4 ++- 6 files changed, 49 insertions(+), 4 deletions(-) create mode 100644 raspi/customs/etc/network/interfaces create mode 100644 raspi/customs/etc/pam.d/common-session-noninteractive create mode 100644 raspi/customs/etc/profile.d/ffmpeg_path.sh diff --git a/raspi/customs/boot/config.txt b/raspi/customs/boot/config.txt index 314e299..dbe36ce 100755 --- a/raspi/customs/boot/config.txt +++ b/raspi/customs/boot/config.txt @@ -3,7 +3,7 @@ # uncomment this if your display has a black border of unused pixels visible # and your display can output without overscan -disable_overscan=1 +#disable_overscan=1 # uncomment the following to adjust overscan. Use positive numbers if console # goes off screen, and negative if there is too much border @@ -39,5 +39,6 @@ disable_overscan=1 #arm_freq=800 # for more options see http://elinux.org/RPi_config.txt -gpu_mem=32 +gpu_mem=16 start_x=0 + diff --git a/raspi/customs/etc/dphys-swapfile b/raspi/customs/etc/dphys-swapfile index 551afbf..229f00e 100644 --- a/raspi/customs/etc/dphys-swapfile +++ b/raspi/customs/etc/dphys-swapfile @@ -1 +1 @@ -CONF_SWAPSIZE=250 +CONF_SWAPSIZE=500 diff --git a/raspi/customs/etc/network/interfaces b/raspi/customs/etc/network/interfaces new file mode 100644 index 0000000..89334ba --- /dev/null +++ b/raspi/customs/etc/network/interfaces @@ -0,0 +1,12 @@ +auto lo + +iface lo inet loopback +iface eth0 inet dhcp + +mtu 1400 + +allow-hotplug wlan0 +iface wlan0 inet dhcp +wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf +iface default inet dhcp + diff --git a/raspi/customs/etc/pam.d/common-session-noninteractive b/raspi/customs/etc/pam.d/common-session-noninteractive new file mode 100644 index 0000000..803181e --- /dev/null +++ b/raspi/customs/etc/pam.d/common-session-noninteractive @@ -0,0 +1,29 @@ +# +# /etc/pam.d/common-session-noninteractive - session-related modules +# common to all non-interactive services +# +# This file is included from other service-specific PAM config files, +# and should contain a list of modules that define tasks to be performed +# at the start and end of all non-interactive sessions. +# +# As of pam 1.0.1-6, this file is managed by pam-auth-update by default. +# To take advantage of this, it is recommended that you configure any +# local modules either before or after the default block, and use +# pam-auth-update to manage selection of other modules. See +# pam-auth-update(8) for details. + +# here are the per-package modules (the "Primary" block) +session [default=1] pam_permit.so +# here's the fallback if no module succeeds +session requisite pam_deny.so +# prime the stack with a positive return value if there isn't one already; +# this avoids us returning an error just because nothing sets a success code +# since the modules above will each just jump around +session required pam_permit.so +# and here are more per-package modules (the "Additional" block) + +# anomen: remove logging +session [success=1 default=ignore] pam_succeed_if.so service in cron quiet use_uid + +session required pam_unix.so +# end of pam-auth-update config diff --git a/raspi/customs/etc/profile.d/ffmpeg_path.sh b/raspi/customs/etc/profile.d/ffmpeg_path.sh new file mode 100644 index 0000000..7d2c9c1 --- /dev/null +++ b/raspi/customs/etc/profile.d/ffmpeg_path.sh @@ -0,0 +1 @@ +export PATH=/opt/ffmpeg/bin/:$PATH diff --git a/raspi/customs/usr/local/bin/mountall b/raspi/customs/usr/local/bin/mountall index 0ff72e5..056b180 100755 --- a/raspi/customs/usr/local/bin/mountall +++ b/raspi/customs/usr/local/bin/mountall @@ -3,8 +3,10 @@ for A in `ls /dev/disk/by-label ` do test "x$A" = "xboot" && continue + test "x$A" = "xTAKEMS_16GB" && continue + echo Mounting: $A pumount /dev/disk/by-label/$A - pmount --noatime /dev/disk/by-label/$A $A + pmount -u 000 --noatime /dev/disk/by-label/$A $A done -- 2.11.4.GIT