SliTaz SliTaz Forum

You are not logged in.

#1 2015-01-20 06:23:57

Saipul
Member
Registered: 2011-06-28
Posts: 87

xfce4-4.10.0 Cooking or Rolling "Shut Down & Restart" Button

1. Open Terminal and switch to root.

2. Install "sudo" packages and edit /etc/sudoer file by switching to "root". Add line after "root ALL=(ALL) ALL" with:

YOUR_USER_NAME_HERE ALL=(ALL) NOPASSWD:ALL

and save change.

3. Go to "/sbin" folder, edit "shutdown" script:

#!/bin/sh

#

case "$1" in

    --halt|-h)

    /sbin/poweroff

    status

    ;;

    --reboot|-r)

    /sbin/reboot

    status

    ;;

esac

exit 0

and save change.

4. Logout and login again. Try again click logout button... Now we have "Shut Down and Restart" button.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]