Subversion Repositories livecd

Rev

Rev 76 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 76 Rev 79
Line 593... Line 593...
593
### stores data on a usbstick
593
### stores data on a usbstick
594
cp -a customize/save-localdata /usr/bin/save-localdata
594
cp -a customize/save-localdata /usr/bin/save-localdata
595
chmod +x /usr/bin/save-localdata
595
chmod +x /usr/bin/save-localdata
596
 
596
 
597
# add /usr/bin/save-localdata to /etc/sudoers
597
# add /usr/bin/save-localdata to /etc/sudoers
-
 
598
if [ -e /etc/sudoers ]; then
598
grep -q "save-localdata" /etc/sudoers 2>/dev/null
599
    grep -q "save-localdata" /etc/sudoers 2>/dev/null
599
if [ "$?" != "0" ]; then
600
    if [ "$?" != "0" ]; then
-
 
601
	cp -a /etc/sudoers /etc/sudoers.ori
600
    echo "$LOCALUSER ALL = NOPASSWD: /usr/bin/save-localdata" >> /etc/sudoers
602
	echo "$LOCALUSER ALL = NOPASSWD: /usr/bin/save-localdata" >> /etc/sudoers
601
fi
603
    fi
-
 
604
fi
602
 
605
 
603
# create menu entry
606
# create menu entry
604
cp -a customize/save-localdata.desktop /usr/share/applications/
607
cp -a customize/save-localdata.desktop /usr/share/applications/
605
 
608
 
606
 
609