10alsa PT-PT

Language Packs


Moderator: Forum moderators

Post Reply
User avatar
AntonioPt
Posts: 306
Joined: Wed Aug 11, 2021 7:41 pm
Has thanked: 130 times
Been thanked: 56 times

10alsa PT-PT

Post by AntonioPt »

Hello All

Another script with translation and i all so clean it repeated code

Remove

Code: Select all

   if [ -e /etc/asound.conf ] && [ "$(cat /etc/asound.conf | grep "ctl.pulse")" == "" ] ; then
    echo "pcm.pulse {
     type pulse
    }
    ctl.pulse {
     type pulse
    }
    pcm.default pulse
    ctl.default pulse
    " > /etc/asound.conf
   elif [ ! -e /etc/asound.conf ] ; then
    echo "pcm.pulse {
     type pulse
    }
    ctl.pulse {
     type pulse
    }
    pcm.default pulse
    ctl.default pulse
    " > /etc/asound.conf
   fi

Replace

Code: Select all

   f="/etc/asound.conf"
   if [[ -e "${f}" && "$(cat ${f} | grep "ctl.pulse")" == "" || ! -e ${f} ]] ; then
    echo "pcm.pulse {
     type pulse
    }
    ctl.pulse {
     type pulse
    }
    pcm.default pulse
    ctl.default pulse
    " > /etc/asound.conf
   fi

Puppy: LunarPup
Path: /etc/init.d

Attachments
10alsa_init.po.fake.gz
(1.23 KiB) Downloaded 34 times
10alsa_init.fake.gz
(6.66 KiB) Downloaded 30 times

Why astronauts use Linux
Because you can't open windows in space

Post Reply

Return to “Internationalization”