I wrote a script and placed it in ''/etc/init.d/':
~$ less /etc/init.d/byt_wallppr.sh
#!/bin/sh
sudo xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitorLVDS1/workspace0/last-image -s /usr/share/backgrounds/xfce/paltanen.jpg
Tried to add it to shutdown runlevel:
~$ sudo rc-update add /etc/init.d/byt_wallppr.sh shutdown
* rc-update: service `/etc/init.d/byt_wallppr.sh' does not exist
changed perms:
$ sudo chmod 770 /etc/init.d/byt_wallppr.sh
still:
$ sudo rc-update add /etc/init.d/byt_wallppr.sh shutdown
* rc-update: service `/etc/init.d/byt_wallppr.sh' does not exist
~$ ls -l /etc/init.d/byt_wallppr.sh
-rwxrwx--- 1 root root 147 17 feb 21.56 /etc/init.d/byt_wallppr.sh
Don't know what. Is there anything wrong with my script? Have I missed any typo?
?