Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / etc / init / | server ip : 104.21.89.46 your ip : 172.69.130.124 H O M E |
Filename | /etc/init/friendly-recovery.conf |
Size | 1.22 kb |
Permission | rw-r--r-- |
Owner | root : root |
Create time | 27-Apr-2025 09:56 |
Last modified | 14-Mar-2012 21:56 |
Last accessed | 27-Apr-2025 10:11 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
# Init script for friendly recovery
start on recovery
console owner
task
emits recovery
emits startup
emits mounted
pre-start script
if plymouth --ping; then
plymouth hide-splash || true
fi
# Try to set the hostname and initialize the console
start hostname || true
start console-setup || true
start setvtrgb || true
# Make sure /run contains the required directories for the
# recovery menu options
mkdir -p /run/lock /run/shm || true
# Emit the mounted event to trigger resolvconf and mounted-run
initctl emit mounted MOUNTPOINT=/run || true
# Finally start udev
start udev || true
udevadm trigger --action=add || true
udevadm settle || true
# And turn off kernel messages (to avoid corrupting the menu)
dmesg --console-off || true
end script
script
# Only start friendly-recovery when booting in recovery mode
if ! grep -q "recovery" /proc/cmdline; then
exit 0
fi
if [ -x /lib/recovery-mode/recovery-menu ]; then
exec /lib/recovery-mode/recovery-menu
else
exec /sbin/sulogin
fi
end script
post-stop script
if plymouth --ping; then
plymouth show-splash
fi
initctl emit startup
end script
start on recovery
console owner
task
emits recovery
emits startup
emits mounted
pre-start script
if plymouth --ping; then
plymouth hide-splash || true
fi
# Try to set the hostname and initialize the console
start hostname || true
start console-setup || true
start setvtrgb || true
# Make sure /run contains the required directories for the
# recovery menu options
mkdir -p /run/lock /run/shm || true
# Emit the mounted event to trigger resolvconf and mounted-run
initctl emit mounted MOUNTPOINT=/run || true
# Finally start udev
start udev || true
udevadm trigger --action=add || true
udevadm settle || true
# And turn off kernel messages (to avoid corrupting the menu)
dmesg --console-off || true
end script
script
# Only start friendly-recovery when booting in recovery mode
if ! grep -q "recovery" /proc/cmdline; then
exit 0
fi
if [ -x /lib/recovery-mode/recovery-menu ]; then
exec /lib/recovery-mode/recovery-menu
else
exec /sbin/sulogin
fi
end script
post-stop script
if plymouth --ping; then
plymouth show-splash
fi
initctl emit startup
end script