#!/bin/sh PREREQ="" DESCRIPTION="Setting compat mode in nsswitch.conf at Live System... " prereqs() { echo "$PREREQ" } case $1 in # get pre-requisites prereqs) prereqs exit 0 ;; esac . /scripts/casper-functions log_begin_msg "$DESCRIPTION" echo " [ InitRamfs Script ] 26nsswitch : Testing if is enabled by casper" rc=0 cat /proc/cmdline | grep -q "casper" ||rc=1 if [ ${rc} -eq 0 ]; then cp -f /usr/share/ubiquity/templates/nsswitch.conf /target/etc || true else echo " Disabled (not in casper)" fi log_end_msg