#!/bin/sh PREREQ="" DESCRIPTION="Setting compat mode in nsswitch.conf at System... " prereqs() { echo "$PREREQ" } case $1 in # get pre-requisites prereqs) prereqs exit 0 ;; esac echo " Testing if is enabled by cmdline" rc=0 cat /proc/cmdline | grep -q "lliurexfix" ||rc=1 if [ ${rc} -eq 0 ]; then echo " [ LliureX Fix ] : Common actions " cp -f /scripts/templates/nsswitch-lliurex.conf /root/etc/nsswitch.conf || true echo " [ LliureX Fix ] : nsswitch fixed : $(date)" >> /root/root/lliurex-fix.log ||true rm -rf /root/var/spool/squid3/swap.state echo " [ LliureX Fix ] : Squid3 cleaned : $(date)" >> /root/root/lliurex-fix.log ||true else echo " Nsswitch Script disabled...for now" fi