#!/bin/sh
# This is the post install script for Pinebook devices!

# Try to make wifi more stable
MAC=$(ip addr | grep ether | cut -c18-32)
echo "options 8723cs rtw_initmac=00$MAC rtw_power_mgnt=0" > /etc/modprobe.d/8723cs.conf

# Unmute sound card
if [ -f /usr/bin/amixer ]
then
echo "Unmuting sound device..."
amixer set -c 0 "AIF1 Slot 0 Digital DAC" 50 unmute
fi


 
