#!/bin/sh # Wrapper script for linpsk to ensure that sound configuration is present linpskbin="/usr/libexec/linpsk-bin" # Check if sound configuration is present if [ ! -e ~/.asoundrc ] # If not there copy sound configuration to user home then cp /etc/skel/.linpsk/asoundrc ~/.asoundrc # TODO append to file if .asoundrc is present fi # Launch linpsk-bin $linpskbin