diff --git a/tools/examples/init.d/xend b/tools/examples/init.d/xend index bf1cc93e3d..b0cbe96612 100755 --- a/tools/examples/init.d/xend +++ b/tools/examples/init.d/xend @@ -7,7 +7,7 @@ # chkconfig: 2345 99 00 # description: Starts and stops the Xen control daemon. -. /etc/init.d/functions +. /etc/init.d/functions || . /etc/init.d/functions.sh case "$1" in start) diff --git a/tools/python/xen/xend/XendRoot.py b/tools/python/xen/xend/XendRoot.py index f022389695..891cf0cea6 100644 --- a/tools/python/xen/xend/XendRoot.py +++ b/tools/python/xen/xend/XendRoot.py @@ -17,7 +17,7 @@ import sxp def reboots(): """Get a list of system reboots from wtmp. """ - out = os.popen('/usr/bin/last reboot', 'r') + out = os.popen('last reboot', 'r') list = [ x.strip() for x in out if x.startswith('reboot') ] return list