#!/bin/sh -e
#
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#


## Fix
    sed -i "/icense=/d" /home/*/.config/?7-?ffice/?ditors.conf 2>/dev/null

exit 0

    CMDLINE="quiet union=aufs wlan=FOO"
    cat /proc/cmdline
    for x in $CMDLINE
    do
	case $x in
	    wlan=*)
	    echo "${x//wlan=}"
	    ;;
	esac
    done

##################    
    # Replace spaces outside double quotes with newlines
args=`cat /proc/cmdline | tr -d '\n' | awk 'BEGIN {RS="\"";ORS="\"" }{if (NR%2==1){gsub(/ /,"\n",$0);print $0} else {print $0}}'`

IFS='                                                                           
'
for line in $args; do
     key=${line%%=*}
     value=${line#*=}

     value=`echo $value | sed -e 's/^"//' -e 's/"$//'`

     printf "%20s = %s\n" "$key" "$value"

done


##################

